Update
This commit is contained in:
parent
5a4095d4ce
commit
fdcec189f1
1 changed files with 2 additions and 1 deletions
|
@ -4,7 +4,6 @@ from nextcord import TextInputStyle
|
|||
from dotenv import load_dotenv
|
||||
from random import randint
|
||||
import aiosqlite as sqlite3
|
||||
import requests
|
||||
import json
|
||||
import traceback
|
||||
import sys
|
||||
|
@ -19,7 +18,9 @@ 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)
|
||||
if payload.emoji == "⭐":
|
||||
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)
|
||||
|
|
Loading…
Reference in a new issue