added dev folder
This commit is contained in:
1 parent
b3c7b34863
commit
b92557b176
4 files changed
+12
No files matched your search
@@ -1,5 +1,11 @@
|
|||||||
|
DEV_MODE=False
|
||||||
|
|
||||||
DISCORD_TOKEN=""
|
DISCORD_TOKEN=""
|
||||||
|
|
||||||
|
GUILD_ID=
|
||||||
|
|
||||||
|
JOIN_LEAVE_CHANNEL_ID=
|
||||||
|
|
||||||
CREATE_MEETUP_CHANNEL_ID=
|
CREATE_MEETUP_CHANNEL_ID=
|
||||||
DE_MEETUP_CHANNEL_ID=
|
DE_MEETUP_CHANNEL_ID=
|
||||||
AT_MEETUP_CHANNEL_ID=
|
AT_MEETUP_CHANNEL_ID=
|
||||||
|
|||||||
File renamed without changes.
File renamed without changes.
@@ -43,6 +43,12 @@ async def load_extensions():
|
|||||||
await bot.load_extension(f"extensions.{filename[:-3]}")
|
await bot.load_extension(f"extensions.{filename[:-3]}")
|
||||||
print(f"Loaded extension: 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 def main():
|
||||||
async with bot:
|
async with bot:
|
||||||
bot.database = Database()
|
bot.database = Database()
|
||||||
|
|||||||
Reference in new issue
Block a user