1
0
Fork 0
mirror of https://github.com/uhIgnacio/EmoteManager.git synced 2024-08-15 02:23:13 +00:00

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): class Bot(commands.AutoShardedBot):
def __init__(self, **kwargs): def __init__(self, **kwargs):
super().__init__(command_prefix=commands.when_mentioned, **kwargs)
with open('config.py') as f: with open('config.py') as f:
self.config = eval(f.read(), {}) self.config = eval(f.read(), {})
super().__init__(
command_prefix=commands.when_mentioned,
description=self.config.get('description', ''),
**kwargs)
for cog in self.config['cogs']: for cog in self.config['cogs']:
self.load_extension(cog) self.load_extension(cog)
def run(self): def run(self):
super().run(self.config['tokens'].pop('discord')) 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': (
'cogs.emote', 'cogs.emote',
'cogs.meta', 'cogs.meta',