42 lines
886 B
Python
42 lines
886 B
Python
import os
|
|
|
|
import nextcord as discord
|
|
from dotenv import load_dotenv
|
|
|
|
from kwaylon import Kwaylon
|
|
|
|
if __name__ == '__main__':
|
|
import logging
|
|
|
|
logging.basicConfig(level=logging.INFO)
|
|
|
|
# https://discordpy.readthedocs.io/en/stable/quickstart.html
|
|
client = Kwaylon(
|
|
# limit=100,
|
|
# days=10
|
|
)
|
|
|
|
|
|
@client.event
|
|
async def on_ready():
|
|
await client.handle_ready()
|
|
|
|
|
|
@client.event
|
|
async def on_message(message: discord.Message):
|
|
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)
|
|
|
|
|
|
load_dotenv()
|
|
client.run(os.getenv('DISCORD_TOKEN'))
|