From 890adcfe021d1cf062d999aec08b392b50f084e0 Mon Sep 17 00:00:00 2001 From: aikaterna Date: Sun, 14 Oct 2018 17:42:32 -0700 Subject: [PATCH] [V3 Trick or Treat] Steal update --- trickortreat/trickortreat.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/trickortreat/trickortreat.py b/trickortreat/trickortreat.py index 1736404..aca302a 100644 --- a/trickortreat/trickortreat.py +++ b/trickortreat/trickortreat.py @@ -325,12 +325,15 @@ class TrickOrTreat(BaseCog): if chance > 18: await self.config.user(picked_user).candies.set(picked_candy_now - pieces) await self.config.user(ctx.author).candies.set(user_candy_now + pieces) + return await message.edit( + content=f"You stole {pieces} \N{CANDY} from {picked_user.name}#{picked_user.discriminator}!" + ) if chance in range(11, 17): await self.config.user(picked_user).candies.set(picked_candy_now - round(pieces / 2)) await self.config.user(ctx.author).candies.set(user_candy_now + round(pieces / 2)) - await message.edit( - content=f"You stole {pieces} \N{CANDY} from {picked_user.name}#{picked_user.discriminator}!" - ) + return await message.edit( + content=f"You stole {round(pieces/2)} \N{CANDY} from {picked_user.name}#{picked_user.discriminator}!" + ) @commands.guild_only() @commands.group()