From 838a9c5607e1a1aa471767c5668c9bfb9f4512c0 Mon Sep 17 00:00:00 2001 From: phxntxm Date: Mon, 17 Oct 2016 12:51:02 -0500 Subject: [PATCH] Corrected how to look for the prefix --- cogs/interaction.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cogs/interaction.py b/cogs/interaction.py index 6bf8de0..d9eaa1e 100644 --- a/cogs/interaction.py +++ b/cogs/interaction.py @@ -137,10 +137,11 @@ class Interaction: battles[ctx.message.author.id] = player2.id self.battles[ctx.message.server.id] = battles - fmt = "{0.mention} has challenged you to a battle {1.mention}\n{1.prefix}accept or {1.prefix}decline" + fmt = "{0.message.author.mention} has challenged you to a battle {1.mention}\n" \ + "{0.prefix}accept or {0.prefix}decline" # 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) - await self.bot.say(fmt.format(ctx.message.author, player2)) + await self.bot.say(fmt.format(ctx, player2)) @commands.command(pass_context=True, no_pm=True) @checks.custom_perms(send_messages=True)