Merge remote into local, because I didn't use branches like I should have.

:coolcry:
This commit is contained in:
0x5c 2019-10-04 14:18:19 -04:00
commit 1aea8e9acb
No known key found for this signature in database
GPG Key ID: CCE14303E194D25E
1 changed files with 12 additions and 0 deletions

View File

@ -21,6 +21,18 @@ class InfoCog(commands.Cog):
embed = embed.add_field(name="License", value=self.gs.info.license)
await ctx.send(embed=embed)
@commands.command(name="restart")
async def _restart_bot(self, ctx):
"""Restarts the bot."""
if ctx.author.id in self.gs.opt.owners_uids:
await ctx.message.add_reaction("")
await self.bot.logout()
else:
try:
await ctx.message.add_reaction("")
except:
return
def setup(bot):
bot.add_cog(InfoCog(bot))