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

Removed the default help command; changed change_status to change_presence due to deprecation

This commit is contained in:
Phxntxm 2016-11-10 21:02:37 -06:00
parent baf209e963
commit d0effedc6a

4
bot.py
View file

@ -25,11 +25,13 @@ logging.basicConfig(level=logging.INFO, filename='bonfire.log')
@bot.event
async def on_ready():
# Change the status upon connection to the default status
await bot.change_status(discord.Game(name=config.default_status, type=0))
await bot.change_presence(discord.Game(name=config.default_status, type=0))
if not hasattr(bot, 'uptime'):
bot.uptime = pendulum.utcnow()
bot.remove_command('help')
@bot.event
async def on_message(message):