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:
parent
162ef91379
commit
11e832027a
1 changed files with 1 additions and 8 deletions
9
bot.py
9
bot.py
|
@ -23,7 +23,6 @@ extensions = ['cogs.interaction',
|
||||||
'cogs.links',
|
'cogs.links',
|
||||||
'cogs.tags',
|
'cogs.tags',
|
||||||
'cogs.roles',
|
'cogs.roles',
|
||||||
'cogs.statsupdate',
|
|
||||||
'cogs.strawpoll',
|
'cogs.strawpoll',
|
||||||
'cogs.tictactoe',
|
'cogs.tictactoe',
|
||||||
'cogs.hangman',
|
'cogs.hangman',
|
||||||
|
@ -36,13 +35,7 @@ opts = {'command_prefix': config.commandPrefix,
|
||||||
'shard_id': config.shard_id}
|
'shard_id': config.shard_id}
|
||||||
|
|
||||||
bot = commands.Bot(**opts)
|
bot = commands.Bot(**opts)
|
||||||
discord_logger = logging.getLogger('discord')
|
logging.basicConfig(level=logging.INFO, filename='bonfire.log')
|
||||||
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)
|
|
||||||
|
|
||||||
|
|
||||||
@bot.event
|
@bot.event
|
||||||
|
|
Loading…
Reference in a new issue