This commit is contained in:
insert 2024-12-26 12:33:23 -05:00
parent 50d3ea7383
commit c4b4c9cb61
Signed by: insert
GPG key ID: A70775C389ACF105

View file

@ -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))