From c4b4c9cb611a1b87968a11a6a5e014cc89646032 Mon Sep 17 00:00:00 2001 From: insert Date: Thu, 26 Dec 2024 12:33:23 -0500 Subject: [PATCH] Update --- starboard.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/starboard.py b/starboard.py index 7dc8341..71c1de9 100644 --- a/starboard.py +++ b/starboard.py @@ -24,8 +24,11 @@ class starboard(commands.Cog): print("Recieved star payload", file=sys.stderr) chann = self.bot.get_channel(payload.channel_id) message = await chann.fetch_message(payload.message_id) - await message.forward(chann) - await chann.send("forwarded message") - + for r in message.reactions: + if r.emoji == "⭐": + await chann.send(f"{r.count}{payload.emoji.name}") + await message.forward(chann) + return + def setup(bot: commands.Bot): bot.add_cog(starboard(bot)) \ No newline at end of file