-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor discord bot code and improve API key handling
Introduced a `ChatHandler` trait to manage message processing in the discord bot. Updated `process_message` function to exclude unused `Context` parameter. Also, made a change to accept a reference to `String` when creating a new `Handler`, enhancing safety and efficiency while using the API key.
- Loading branch information
1 parent
0cdee5c
commit ab86b7b
Showing
2 changed files
with
17 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters