From b2cf33eeecf1f4076040283fb9f3a09c696712d5 Mon Sep 17 00:00:00 2001 From: Aaron Riedel Date: Sat, 22 Jan 2022 19:41:03 +0100 Subject: [PATCH] fixed some errors --- bot.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/bot.py b/bot.py index a35ecc6..6fb045a 100644 --- a/bot.py +++ b/bot.py @@ -27,11 +27,11 @@ async def member(ctx): return True def is_admin(): async def predicate(ctx): - admin(ctx) + await admin(ctx) return commands.check(predicate) def is_member(): async def predicate(ctx): - member(ctx) + await member(ctx) return commands.check(predicate) @@ -43,6 +43,10 @@ async def on_ready(): bot = commands.Bot(command_prefix='!') +@bot.command() +async def test(ctx, arg): + await ctx.send(arg) + @bot.command() @is_member() async def yesno(ctx): @@ -51,7 +55,7 @@ async def yesno(ctx): @bot.command() @is_member() -async def help(ctx): +async def helpme(ctx): if admin(ctx): admin_text = "\n\n!add = Hinzufügen einer Rolle mit Textchannel und hinzufügen von Usern zur Rolle\nNutzung: !add \"\" \n\n!labor = bringt dich ins Labor :)\nNutzung: !labor\n\n!start = Starte ne Runde PnP\nNutzung: !start @Rolle\n\n!stop = Beende die gestartete Runde PnP\nNutzung: !stop\n\n!purge = Löschen von Nachrichten\nNutzung: !purge all||x minutes/hours/days/weeks\n\n!prune - kickt Member ohne Rolle, die 30 Tage nicht online waren\nNutzung: !prune" else: