From 4c29c2b470d6f27416a97c3be1e41f753e0a1ea6 Mon Sep 17 00:00:00 2001 From: mathsman5133 <38833292+mathsman5133@users.noreply.github.com> Date: Thu, 11 Oct 2018 21:58:13 +1100 Subject: fixed colour for spooky msg --- bot/cogs/candy_collection.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bot/cogs/candy_collection.py') diff --git a/bot/cogs/candy_collection.py b/bot/cogs/candy_collection.py index 208f6686..1d470524 100644 --- a/bot/cogs/candy_collection.py +++ b/bot/cogs/candy_collection.py @@ -75,7 +75,7 @@ class CandyCollection: else: lost = random.randint(1, 3) user_records['record'] -= lost - await self.send_spook_msg(message.channel, lost) + await self.send_spook_msg(message.author, message.channel, lost) except KeyError: # otherwise it will raise KeyError so we need to add them @@ -135,9 +135,9 @@ class CandyCollection: except discord.HTTPException: pass - async def send_spook_msg(self, channel, candies): + async def send_spook_msg(self, author, channel, candies): """Send a (lame) spooky message""" - e = discord.Embed(colour=discord.Member.colour) + e = discord.Embed(colour=author.colour) e.set_author(name="Ghosts and Ghouls and Jack o' lanterns at night; " f"I took {candies} candies and quickly took flight.") await channel.send(embed=e) -- cgit v1.2.3