From af9eeabe5e6671c33cd71e276d76494f7c8fc3a3 Mon Sep 17 00:00:00 2001 From: Phxntxm Date: Thu, 10 Aug 2017 16:54:55 -0500 Subject: [PATCH] Correct implementation of checking hug messages --- cogs/admin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cogs/admin.py b/cogs/admin.py index b35fdbc..e830611 100644 --- a/cogs/admin.py +++ b/cogs/admin.py @@ -75,7 +75,7 @@ class Administration: # First just send the hugs await ctx.invoke(self.battles) # Then let them know to respond with the number needed - await ctx.send("Please respond with the number matching the hug message you want to remove") + await ctx.send("Please respond with the number matching the battle message you want to remove") # The check to ensure it's in this channel...and what's provided is an int def check(m): if m.author == ctx.message.author and m.channel == ctx.message.channel: @@ -165,7 +165,7 @@ class Administration: RESULT: *new hug message that says I hugged UserName*""" # Try to simulate the message, to ensure they haven't provided an invalid phrase try: - message.format(loser="player1", winner="player2") + message.format(user="user") except: await ctx.send("That is an invalid format! The user being hugged needs to be labeled with {user}") return