1
0
Fork 0
mirror of synced 2024-06-01 18:29:38 +12:00

Added sharding

This commit is contained in:
phxntxm 2016-08-30 14:16:24 -05:00
parent 2d78558cec
commit aa506faa2b

7
bot.py
View file

@ -29,7 +29,12 @@ extensions = ['cogs.interaction',
'cogs.hangman',
'cogs.steam']
bot = commands.Bot(command_prefix=config.commandPrefix, description=config.botDescription, pm_help=None)
opts = {'command_prefix': config.commandPrefix,
'description': config.botDescription,
'pm_help': None,
'shard_count': config.shard_count,
'shard_id': config.shard_id}
bot = commands.Bot(**opts)
discord_logger = logging.getLogger('discord')
discord_logger.setLevel(logging.WARNING)