fixed a typo with the async lock
This commit is contained in:
14
main.py
14
main.py
@@ -11,21 +11,13 @@ if __name__ == '__main__':
|
||||
|
||||
logging.basicConfig(level=logging.INFO)
|
||||
|
||||
client = Kwaylon(
|
||||
# limit=100,
|
||||
# days=60
|
||||
)
|
||||
client = Kwaylon()
|
||||
|
||||
|
||||
@client.event
|
||||
async def on_ready():
|
||||
await client.handle_ready()
|
||||
# await client.data.scan_messages(
|
||||
# client=client,
|
||||
# # limit=100,
|
||||
# days=60,
|
||||
# )
|
||||
|
||||
# await client.data.scan_messages(client=client, days=10)
|
||||
|
||||
@client.event
|
||||
async def on_message(message: discord.Message):
|
||||
@@ -40,7 +32,7 @@ if __name__ == '__main__':
|
||||
@client.event
|
||||
async def on_raw_reaction_remove(payload: RawReactionActionEvent):
|
||||
await client.handle_raw_reaction(payload)
|
||||
# await client.data.remove_reaction(payload)
|
||||
|
||||
|
||||
load_dotenv()
|
||||
client.run(os.getenv('DISCORD_TOKEN'))
|
||||
|
||||
Reference in New Issue
Block a user