This commit is contained in:
insert 2024-12-26 12:20:25 -05:00
parent 5a4095d4ce
commit fdcec189f1
Signed by: insert
GPG key ID: A70775C389ACF105

View file

@ -4,7 +4,6 @@ from nextcord import TextInputStyle
from dotenv import load_dotenv from dotenv import load_dotenv
from random import randint from random import randint
import aiosqlite as sqlite3 import aiosqlite as sqlite3
import requests
import json import json
import traceback import traceback
import sys import sys
@ -19,7 +18,9 @@ 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)
if payload.emoji == "": if payload.emoji == "":
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)