Add self-management (presence, etc.) tools#18
Draft
SootyOwl wants to merge 10 commits intobarryyip0625:mainfrom
Draft
Add self-management (presence, etc.) tools#18SootyOwl wants to merge 10 commits intobarryyip0625:mainfrom
SootyOwl wants to merge 10 commits intobarryyip0625:mainfrom
Conversation
Co-authored-by: SootyOwl <7614538+SootyOwl@users.noreply.github.com>
- Replace setBotStatus and setBotActivity handlers with a unified setBotPresence handler. - Introduce SetPresenceSchema for validating presence data. - Enhance presence setting to include AFK status and activities.
- Implement setNicknameHandler to update bot's nickname in a guild. - Implement setAboutMeHandler to update bot's 'About Me' section. - Add corresponding schemas for validation.
- Require guildId in SetNicknameSchema - Allow resetting nickname by passing undefined
- Clarified the description for the 'About Me' section - Ensured consistency in schema documentation
- Introduce SetBioSchema for validating bio input. - Implement setBioHandler to update bot bio in a specific guild. - Refactor existing handlers to maintain consistency.
- Implement setNicknameHandler and setBioHandler - Update request handling to include new functionalities
- Add `discord_set_bio` to set or clear the bot's bio in a server - Add `discord_set_nickname` to set or clear the bot's nickname in a server - Update toolList with new commands and descriptions
- Upgrade discord.js to version 14.23.2
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request adds new capabilities for managing the bot's presence, nickname, bio, and global "About Me" information. It introduces these new tools in
tools/presence.ts:discord_set_presence: Sets the bot's presence (status and activity) in Discord.discord_set_nickname: Sets the bot's nickname on a server.discord_set_bio: Sets the bot's bio on a server.discord_set_about_me: Sets the bot's About Me information.