diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..bfb6be5 --- /dev/null +++ b/.env.example @@ -0,0 +1 @@ +BOT_TOKEN= diff --git a/main.py b/main.py index 4948916..6b98121 100644 --- a/main.py +++ b/main.py @@ -1,15 +1,18 @@ +import os import discord from discord.ext import commands +from dotenv import load_dotenv -TOKEN = "bot_token" -USER_IDS = [123456789012345678, 987654321098765432] -EMOJI = "<:cool:123456789012345678>" +load_dotenv() +TOKEN = os.getenv("BOT_TOKEN") or "bot_token" + +USER_IDS = {123456789012345678, 987654321098765432} +EMOJI = "<:cool:123456789012345678>" intents = discord.Intents.default() intents.message_content = True -intents.messages = True intents.guilds = True bot = commands.Bot(command_prefix="!", intents=intents) diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..0e34cd7 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,2 @@ +discord.py>=2.5.1 +python-dotenv>=1.0.0