From e9446c00e27d69ace8adb3c2f366a082efd4b3c4 Mon Sep 17 00:00:00 2001 From: Xevion Date: Sun, 24 Jan 2021 14:22:47 -0600 Subject: [PATCH] proper requirements.txt, TOKEN path constant in client.run --- main.py | 2 +- requirements.txt | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 requirements.txt diff --git a/main.py b/main.py index 728e286..cc09819 100644 --- a/main.py +++ b/main.py @@ -25,6 +25,6 @@ if __name__ == "__main__": client = UnbelievaClient(parsed.bot, parsed.channel) logger.info('Starting bot.') - with open('../token.dat', 'r') as file: + with open(constants.TOKEN, 'r') as file: token = file.read() client.run(token, bot=False) diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..8b57bb6 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,4 @@ +discord~=1.0.1 + +aiosqlite~=0.16.1 +regex~=2020.11.13