diff --git a/.env.example b/.env.example index ecf4da1..646b748 100644 --- a/.env.example +++ b/.env.example @@ -1,5 +1,11 @@ +DEV_MODE=False + DISCORD_TOKEN="" +GUILD_ID= + +JOIN_LEAVE_CHANNEL_ID= + CREATE_MEETUP_CHANNEL_ID= DE_MEETUP_CHANNEL_ID= AT_MEETUP_CHANNEL_ID= diff --git a/commands/create_meet.py b/dev/create_meet.py similarity index 100% rename from commands/create_meet.py rename to dev/create_meet.py diff --git a/commands/db_test.py b/dev/db_test.py similarity index 100% rename from commands/db_test.py rename to dev/db_test.py diff --git a/main.py b/main.py index 0972320..2034f37 100644 --- a/main.py +++ b/main.py @@ -43,6 +43,12 @@ async def load_extensions(): await bot.load_extension(f"extensions.{filename[:-3]}") print(f"Loaded extension: extensions.{filename[:-3]}") + if os.getenv("DEV_MODE") == "True": + for filename in os.listdir("./dev"): + if filename.endswith(".py"): + await bot.load_extension(f"dev.{filename[:-3]}") + print(f"Loaded extension: dev.{filename[:-3]}") + async def main(): async with bot: bot.database = Database()