Removed the default help command; changed change_status to change_presence due to deprecation
This commit is contained in:
parent
baf209e963
commit
d0effedc6a
4
bot.py
4
bot.py
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue