mirror of
https://github.com/kevinthedang/discord-ollama.git
synced 2025-12-12 11:56:06 -05:00
1.0 KiB
1.0 KiB
Events Guide
This is a guide to all of the client events for the app.
[!NOTE] Each of these is logged to the console for a developer to track.
-
ClientReady
This event signifies that the Discord app is online.
Here the app's activity is set and its commands are registered. -
InteractionCreate
This event signifies that a user interacted from Discord in some way.
Here commands are selected from a knowledge bank and executed if found.[!NOTE] Possible interactions include commands, buttons, menus, etc.
-
MessageCreate
This event signifies that a message was sent.
Here user questions and comments for the LLM are processed.- check message is from a user and mentions the app
- check for interaction preferences
- add the message to a queue
- check the response for success
- send a response back to the user.
-
ThreadDelete
This event signifies that a Discord Thread was deleted.
Here any preferences set for interaction within the thread are cleared away.