add shutdown command

This commit is contained in:
qwewqa 2021-01-21 16:31:34 -05:00
parent aa16811c50
commit 38c79c8faa

View File

@ -23,6 +23,11 @@ class Utility(commands.Cog):
async def similarity_score(self, ctx: commands.Context, source: str, target: str):
await ctx.send(str(FuzzyMatcher().score(romanize(source), romanize(target))))
@commands.command(hidden=True)
@commands.is_owner()
async def shutdown(self, ctx: commands.Context):
await self.bot.logout()
@commands.command(name='invite',
aliases=[],
description='Sends the bot invite.',