diff --git a/bin/hrochobot b/bin/hrochobot index 729e853..a1895fe 100755 --- a/bin/hrochobot +++ b/bin/hrochobot @@ -18,13 +18,7 @@ CONFIG = data.load_json(os.path.join(CONFIG_FOLDER, "config")) bot = commands.Bot() -cogs_list = [ - 'basic', - 'roles', - 'messages', - 'ksp', - 'news', -] +cogs_list = CONFIG["enabled_cogs"] for cog in cogs_list: bot.load_extension(f'hrochobot.cogs.{cog}') diff --git a/config.example.json b/config.example.json index f6f8490..71e7949 100644 --- a/config.example.json +++ b/config.example.json @@ -1,3 +1,10 @@ { - "token": "Paste your token here." -} \ No newline at end of file + "token": "Paste your token here.", + "enabled_cogs": [ + "basic", + "roles", + "messages", + "ksp", + "news" + ] +}