From f1f35f0b520a9efe7c4b74e3683766b3e82ef783 Mon Sep 17 00:00:00 2001 From: mathsman5133 <38833292+mathsman5133@users.noreply.github.com> Date: Wed, 10 Oct 2018 11:04:18 +1100 Subject: Update candy_collection.py --- bot/cogs/candy_collection.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'bot/cogs/candy_collection.py') diff --git a/bot/cogs/candy_collection.py b/bot/cogs/candy_collection.py index 41e9472f..208f6686 100644 --- a/bot/cogs/candy_collection.py +++ b/bot/cogs/candy_collection.py @@ -138,9 +138,8 @@ class CandyCollection: async def send_spook_msg(self, channel, candies): """Send a (lame) spooky message""" e = discord.Embed(colour=discord.Member.colour) - e.set_author(name="You went to bed last night and the witch visited your grave." - " She left a message that you will be cursed for as long as you live." - f" You woke up this morning and found that {candies} candies had disappeared") + 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) def save_to_json(self): @@ -176,7 +175,7 @@ class CandyCollection: e.add_field(name='\u200b', value=f"Candies will randomly appear on messages sent. " f"\nHit the candy when it appears as fast as possible to get the candy! " - f"\nBut beware the witch...", + f"\nBut beware the ghosts...", inline=False) await ctx.send(embed=e) -- cgit v1.2.3 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