✨ Converted misc functionality to slash commands
This commit is contained in:
14
Gwendolyn.py
14
Gwendolyn.py
@ -36,6 +36,20 @@ class Gwendolyn(commands.Bot):
|
||||
def log(self, messages, channel : str = "", level : int = 20):
|
||||
logThis(messages, channel, level)
|
||||
|
||||
async def stop(self, ctx):
|
||||
if f"#{ctx.author.id}" in self.options.admins:
|
||||
await ctx.send("Pulling git repo and restarting...")
|
||||
|
||||
await self.change_presence(status = discord.Status.offline)
|
||||
|
||||
self.databaseFuncs.stopServer()
|
||||
|
||||
self.log("Logging out", level = 25)
|
||||
await self.logout()
|
||||
else:
|
||||
self.log(f"{ctx.author.display_name} tried to stop me! (error code 201)",str(ctx.channel_id))
|
||||
await ctx.send(f"I don't think I will, {ctx.author.display_name} (error code 201)")
|
||||
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
Reference in New Issue
Block a user