handling reactions again
This commit is contained in:
19
main.py
19
main.py
@@ -2,6 +2,7 @@ import os
|
||||
|
||||
import nextcord as discord
|
||||
from dotenv import load_dotenv
|
||||
from nextcord import RawReactionActionEvent
|
||||
|
||||
from kwaylon import Kwaylon
|
||||
|
||||
@@ -12,7 +13,7 @@ if __name__ == '__main__':
|
||||
|
||||
client = Kwaylon(
|
||||
# limit=100,
|
||||
# days=10
|
||||
# days=60
|
||||
)
|
||||
|
||||
|
||||
@@ -26,14 +27,14 @@ if __name__ == '__main__':
|
||||
await client.handle_message(message)
|
||||
|
||||
|
||||
# @client.event
|
||||
# async def on_raw_reaction_add(payload: RawReactionActionEvent):
|
||||
# await client.handle_raw_reaction(payload)
|
||||
#
|
||||
#
|
||||
# @client.event
|
||||
# async def on_raw_reaction_remove(payload: RawReactionActionEvent):
|
||||
# await client.handle_raw_reaction(payload)
|
||||
@client.event
|
||||
async def on_raw_reaction_add(payload: RawReactionActionEvent):
|
||||
await client.handle_raw_reaction(payload)
|
||||
|
||||
|
||||
@client.event
|
||||
async def on_raw_reaction_remove(payload: RawReactionActionEvent):
|
||||
await client.handle_raw_reaction(payload)
|
||||
|
||||
load_dotenv()
|
||||
client.run(os.getenv('DISCORD_TOKEN'))
|
||||
|
||||
Reference in New Issue
Block a user