This commit is contained in:
insert 2024-12-26 12:23:41 -05:00
parent d1e5230d94
commit 9fdc1ccbdb
Signed by: insert
GPG key ID: A70775C389ACF105

View file

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