mirror of
https://github.com/uhIgnacio/EmoteManager.git
synced 2024-08-15 02:23:13 +00:00
add description
This commit is contained in:
parent
e5da0de672
commit
95848c3163
2 changed files with 11 additions and 3 deletions
9
bot.py
9
bot.py
|
@ -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'))
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue