fix error in string formatting
This commit is contained in:
parent
6add77b5f0
commit
c58ebdb6be
1 changed files with 3 additions and 2 deletions
5
bot.py
5
bot.py
|
@ -18,7 +18,8 @@ def mid(s, offset, amount):
|
||||||
return s[offset:offset+amount]
|
return s[offset:offset+amount]
|
||||||
|
|
||||||
token = os.environ['TOKEN']
|
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()
|
client = discord.Client()
|
||||||
|
|
||||||
def admin(ctx):
|
def admin(ctx):
|
||||||
|
@ -296,7 +297,7 @@ async def prune(ctx):
|
||||||
deleted = await ctx.guild.prune_members(days=30)
|
deleted = await ctx.guild.prune_members(days=30)
|
||||||
await ctx.send(content='Ich habe {} Leichen beseitigt.'.format(deleted), delete_after=5.0)
|
await ctx.send(content='Ich habe {} Leichen beseitigt.'.format(deleted), delete_after=5.0)
|
||||||
|
|
||||||
@bot.command(help="Rolle einen oder mehrere Würfel", usage="<anzahl_optional>W<seitenzahl> (z.B. %sroll W20 oder %sroll 10W6)" % os.environ['PREFIX'])
|
@bot.command(help="Rolle einen oder mehrere Würfel", usage="<anzahl_optional>W<seitenzahl> (z.B. %sroll W20 oder %sroll 10W6)" % (prefix, prefix))
|
||||||
@is_member()
|
@is_member()
|
||||||
async def roll(ctx, arg):
|
async def roll(ctx, arg):
|
||||||
await ctx.message.delete()
|
await ctx.message.delete()
|
||||||
|
|
Loading…
Reference in a new issue