fixed some errors
This commit is contained in:
parent
6ec6b7f60e
commit
b2cf33eeec
1 changed files with 7 additions and 3 deletions
10
bot.py
10
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 \"<Rolle>\" <User Mentions>\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|<Anzahl>|x minutes/hours/days/weeks\n\n!prune - kickt Member ohne Rolle, die 30 Tage nicht online waren\nNutzung: !prune"
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue