Added sharding
This commit is contained in:
parent
2d78558cec
commit
aa506faa2b
7
bot.py
7
bot.py
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue