Used current prefix instead of the default one used
This commit is contained in:
parent
9bd10dcb12
commit
475cbb4cb5
1 changed files with 1 additions and 1 deletions
|
@ -137,7 +137,7 @@ class Interaction:
|
||||||
battles[ctx.message.author.id] = player2.id
|
battles[ctx.message.author.id] = player2.id
|
||||||
self.battles[ctx.message.server.id] = battles
|
self.battles[ctx.message.server.id] = battles
|
||||||
|
|
||||||
fmt = "{0.mention} has challenged you to a battle {1.mention}\n!accept or !decline"
|
fmt = "{0.mention} has challenged you to a battle {1.mention}\n{1.prefix}accept or {1.prefix}decline"
|
||||||
# Add a call to turn off battling, if the battle is not accepted/declined in 3 minutes
|
# Add a call to turn off battling, if the battle is not accepted/declined in 3 minutes
|
||||||
self.bot.loop.call_later(180, self.battling_off, ctx)
|
self.bot.loop.call_later(180, self.battling_off, ctx)
|
||||||
await self.bot.say(fmt.format(ctx.message.author, player2))
|
await self.bot.say(fmt.format(ctx.message.author, player2))
|
||||||
|
|
Loading…
Reference in a new issue