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