Skip to content

Commit 0581f4f

Browse files
committed
Move extension handling into __main__
1 parent 85c2d9b commit 0581f4f

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

src/main.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,15 @@ async def on_ready():
3838
await bot.change_presence(
3939
activity=discord.Activity(type=discord.ActivityType.watching, name=f"{PREFIX}help"))
4040

41-
# LOADING Extensions
42-
bot.remove_command('help') # unload default help message
43-
initial_extensions = [
44-
'cogs.misc',
45-
'cogs.help'
46-
]
4741

4842
if __name__ == '__main__':
43+
# LOADING Extensions
44+
bot.remove_command('help') # unload default help message
45+
initial_extensions = [
46+
'cogs.misc',
47+
'cogs.help'
48+
]
49+
4950
for extension in initial_extensions:
5051
bot.load_extension(extension)
5152

0 commit comments

Comments
 (0)