Update
This commit is contained in:
parent
d1e5230d94
commit
9fdc1ccbdb
1 changed files with 3 additions and 2 deletions
|
@ -19,12 +19,13 @@ class starboard(commands.Cog):
|
||||||
@commands.Cog.listener('on_raw_reaction_add')
|
@commands.Cog.listener('on_raw_reaction_add')
|
||||||
async def on_raw_reaction_add(self,payload):
|
async def on_raw_reaction_add(self,payload):
|
||||||
print("recieved emoji payload", file=sys.stderr)
|
print("recieved emoji payload", file=sys.stderr)
|
||||||
print(payload.emoji, file=sys.stderr)
|
print(payload.emoji.name, file=sys.stderr)
|
||||||
if payload.emoji == "⭐":
|
if payload.emoji.name == "⭐":
|
||||||
print("Recieved star payload", file=sys.stderr)
|
print("Recieved star payload", file=sys.stderr)
|
||||||
chann = self.bot.get_channel(payload.channel_id)
|
chann = self.bot.get_channel(payload.channel_id)
|
||||||
message = chann.fetch_message(payload.message_id)
|
message = chann.fetch_message(payload.message_id)
|
||||||
await message.forward(chann)
|
await message.forward(chann)
|
||||||
|
await chann.send("forwarded message")
|
||||||
|
|
||||||
def setup(bot: commands.Bot):
|
def setup(bot: commands.Bot):
|
||||||
bot.add_cog(starboard(bot))
|
bot.add_cog(starboard(bot))
|
Loading…
Reference in a new issue