Update
This commit is contained in:
parent
50d3ea7383
commit
c4b4c9cb61
1 changed files with 6 additions and 3 deletions
|
@ -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))
|
Loading…
Reference in a new issue