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 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)
|
||||||
|
|
Loading…
Reference in a new issue