Smol fixes for deployment

This commit is contained in:
2021-09-02 21:48:13 +02:00
parent 9a6954525c
commit 708509ce03
+7 -4
View File
@@ -102,15 +102,18 @@ class Timer(commands.Cog):
except Exception as e: except Exception as e:
await ctx.channel.send(f"You idiot. Send the command right: {e}") await ctx.channel.send(f"You idiot. Send the command right: {e}")
@commands.command(pass_context=True, hidden=False) @commands.command(pass_context=True, hidden=True)
async def reminders(self, ctx): async def reminders(self, ctx):
msg = "Here are my current reminders:\n" if len(self.timers) > 0:
msg = "Here's what I'm gonna do:\n"
for timer in self.timers: for timer in self.timers:
msg += f"\t{timer.id}:\t{timer.status()}\n" msg += f"\t{timer.id}:\t{timer.status()}\n"
msg += "Use `!delete <id>` to delete a standing reminder" msg += "*Use `!delete <id>` to delete a standing reminder*"
await ctx.channel.send(msg) await ctx.channel.send(msg)
else:
await ctx.channel.send("Idiot. You have to set reminders first.")
@commands.command(pass_context=True, hidden=False) @commands.command(pass_context=True, hidden=True)
async def delete(self, ctx, id: int): async def delete(self, ctx, id: int):
self.timers.remove(id) self.timers.remove(id)
self.pickle_timers.remove(id) self.pickle_timers.remove(id)