diff --git a/main.py b/main.py index e31470f..702826b 100644 --- a/main.py +++ b/main.py @@ -4,6 +4,9 @@ import random import re +from dotenv import load_dotenv +load_dotenv() + intents = discord.Intents.default() intents.members = True intents.message_content = True @@ -140,5 +143,5 @@ async def on_message(message: discord.Message): await message.add_reaction(react) -token = os.environ['TOKEN'] +token = os.getenv('TOKEN') bot.run(token) diff --git a/requirements.txt b/requirements.txt index 3a64a6d..65ce5d9 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,3 @@ aiohttp==3.9.0b0 -py-cord \ No newline at end of file +py-cord +python-dotenv