1
0
Fork 0
mirror of synced 2024-06-15 00:54:34 +12:00

Corrected the logger, removed statsupdate while testing since this is not on a valid bot for carbon/bots.discord.pw

This commit is contained in:
phxntxm 2016-08-30 16:21:02 -05:00
parent 162ef91379
commit 11e832027a

9
bot.py
View file

@ -23,7 +23,6 @@ extensions = ['cogs.interaction',
'cogs.links',
'cogs.tags',
'cogs.roles',
'cogs.statsupdate',
'cogs.strawpoll',
'cogs.tictactoe',
'cogs.hangman',
@ -36,13 +35,7 @@ opts = {'command_prefix': config.commandPrefix,
'shard_id': config.shard_id}
bot = commands.Bot(**opts)
discord_logger = logging.getLogger('discord')
discord_logger.setLevel(logging.WARNING)
log = logging.getLogger()
log.setLevel(logging.INFO)
handler = logging.FileHandler(filename='bonfire.log', encoding='utf-8', mode='a')
log.addHandler(handler)
logging.basicConfig(level=logging.INFO, filename='bonfire.log')
@bot.event