:Bug: Bot goes invisible when it's about to log out
This commit is contained in:
@ -33,6 +33,8 @@ class MiscCog(commands.Cog):
|
||||
if "#"+str(ctx.author.id) in self.bot.options.admins:
|
||||
await ctx.send("Pulling git repo and restarting...")
|
||||
|
||||
await self.bot.change_presence(status = discord.Status.offline)
|
||||
|
||||
self.bot.databaseFuncs.stopServer()
|
||||
|
||||
self.bot.log("Logging out.")
|
||||
|
Reference in New Issue
Block a user