Browse Source

Add enabling / disabling cogs to config

master
Daniel Skýpala 1 year ago
parent
commit
747d17d8d3
  1. 8
      bin/hrochobot
  2. 9
      config.example.json

8
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}')

9
config.example.json

@ -1,3 +1,10 @@
{
"token": "Paste your token here."
"token": "Paste your token here.",
"enabled_cogs": [
"basic",
"roles",
"messages",
"ksp",
"news"
]
}
Loading…
Cancel
Save