From 9fdc1ccbdba11fc8638508c0d95f3c79453f9e02 Mon Sep 17 00:00:00 2001 From: insert Date: Thu, 26 Dec 2024 12:23:41 -0500 Subject: [PATCH] Update --- starboard.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/starboard.py b/starboard.py index dab4256..db16e20 100644 --- a/starboard.py +++ b/starboard.py @@ -19,12 +19,13 @@ class starboard(commands.Cog): @commands.Cog.listener('on_raw_reaction_add') async def on_raw_reaction_add(self,payload): print("recieved emoji payload", file=sys.stderr) - print(payload.emoji, file=sys.stderr) - if payload.emoji == "⭐": + print(payload.emoji.name, file=sys.stderr) + if payload.emoji.name == "⭐": print("Recieved star payload", file=sys.stderr) chann = self.bot.get_channel(payload.channel_id) message = chann.fetch_message(payload.message_id) await message.forward(chann) + await chann.send("forwarded message") def setup(bot: commands.Bot): bot.add_cog(starboard(bot)) \ No newline at end of file