add description

This commit is contained in:
bmintz 2018-07-31 21:05:23 -05:00
parent e5da0de672
commit 95848c3163
2 changed files with 11 additions and 3 deletions

9
bot.py
View File

@ -13,13 +13,16 @@ logger.setLevel(logging.INFO)
class Bot(commands.AutoShardedBot):
def __init__(self, **kwargs):
super().__init__(command_prefix=commands.when_mentioned, **kwargs)
with open('config.py') as f:
self.config = eval(f.read(), {})
super().__init__(
command_prefix=commands.when_mentioned,
description=self.config.get('description', ''),
**kwargs)
for cog in self.config['cogs']:
self.load_extension(cog)
self.load_extension(cog)
def run(self):
super().run(self.config['tokens'].pop('discord'))

View File

@ -1,4 +1,9 @@
{
'description':
'Emote Manager lets you manage custom server emotes from your phone. '
'NOTE: Most commands will be unavailable until both you and the bot have the '
'"Manage Emojis" permission.',
'cogs': (
'cogs.emote',
'cogs.meta',