Introduction
We are excited to announce the release of Vtuber Wiki Discord Bot version 0.0.2. This update introduces several enhancements and improvements to the bot, focusing on usability, functionality, and developer support. Below is a detailed changelog describing the changes and new features in this version.
New Features and Enhancements
Documentation Updates
-
README Overhaul: The README file has been significantly updated to provide a more comprehensive introduction to the Vtuber Wiki Discord Bot. The new version includes a title and a description that clearly outline the purpose of the documentation, making it more accessible for new users and contributors.
-
New Command Creation Guide: A new document titled "Creating a New Command" has been added under the
docs/commands
directory. This guide offers step-by-step instructions on how to create a new command for the bot, aimed at helping developers contribute more effectively.
Codebase Improvements
- Package Updates:
-
Version Increment: The bot version has been incremented to 0.0.2, marking a new stage in its development lifecycle.
-
New Dependencies: Two new NPM packages,
gray-matter
(v4.0.3) andmarked
(v11.1.0), have been added. These additions are expected to enhance the bot's functionality in processing markdown files and managing data.
- Code Refinements:
- Refactored stats.ts: The
stats.ts
file undersrc/commands/Slash/Info
has been optimized by removing the unused importIClient
. This change simplifies the code and improves readability. - Updated
getVtubers.ts
: Insrc/commands/Slash/Sdk/getVtubers.ts
, thequery
string option has been set as required, enhancing the command's robustness and ensuring consistent behavior.
Configuration and Deployment
- Guild ID Configuration:
- The configuration file
src/config.ts
now includes separate Guild IDs for production and development environments. This separation enhances the deployment process, allowing for more controlled and efficient testing and release cycles.
- Deployment Command Updates:
The deployment scripts in src/deploy-commands.ts
have been updated to accommodate the new Guild ID configuration. The script now conditionally deploys commands based on the environment, ensuring that the correct set of commands is deployed to the appropriate Discord server.
Event Handling
- Message Event Streamlining:
The messageCreate
event in src/events/messageCreate.ts
has been streamlined by removing the enumeration GuildFeatures
and the function CalculateNSFWLevel
. This change simplifies the event handling and improves performance.
- Ready Event Enhancement:
- In
src/events/ready.ts
, the functiongetActivityType
has been moved to../utils/discord
, modularizing the code and improving maintainability. This enhancement aids in better code organization and readability.
Interface Updates
- The
IConfig
interface insrc/interfaces/IConfig.ts
has been updated to reflect the new Guild ID structure, ensuring consistency across the application and smoother integration of the new configuration setup.