diff --git a/bot.py b/bot.py index 868ad6b..e05d6ec 100644 --- a/bot.py +++ b/bot.py @@ -18,7 +18,8 @@ def mid(s, offset, amount): return s[offset:offset+amount] token = os.environ['TOKEN'] -bot = commands.Bot(command_prefix=os.environ['PREFIX']) +prefix = os.environ['PREFIX'] +bot = commands.Bot(command_prefix=prefix) client = discord.Client() def admin(ctx): @@ -296,7 +297,7 @@ async def prune(ctx): deleted = await ctx.guild.prune_members(days=30) await ctx.send(content='Ich habe {} Leichen beseitigt.'.format(deleted), delete_after=5.0) -@bot.command(help="Rolle einen oder mehrere Würfel", usage="W (z.B. %sroll W20 oder %sroll 10W6)" % os.environ['PREFIX']) +@bot.command(help="Rolle einen oder mehrere Würfel", usage="W (z.B. %sroll W20 oder %sroll 10W6)" % (prefix, prefix)) @is_member() async def roll(ctx, arg): await ctx.message.delete()