diff options
author | 2018-10-11 21:58:13 +1100 | |
---|---|---|
committer | 2018-10-11 21:58:13 +1100 | |
commit | 4c29c2b470d6f27416a97c3be1e41f753e0a1ea6 (patch) | |
tree | 76172df184a6d601609814f660a4f7f26320eea1 /bot/cogs/candy_collection.py | |
parent | Update candy_collection.json (diff) |
fixed colour for spooky msg
Diffstat (limited to 'bot/cogs/candy_collection.py')
-rw-r--r-- | bot/cogs/candy_collection.py | 6 |
1 files changed, 3 insertions, 3 deletions
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) |