Skip to content

Enhanced Usability and Developer Support

Latest
Compare
Choose a tag to compare
@yamiOnEstrogen yamiOnEstrogen released this 26 Dec 01:19
· 8 commits to main since this release

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

  1. 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.

  2. 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

  1. 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) and marked (v11.1.0), have been added. These additions are expected to enhance the bot's functionality in processing markdown files and managing data.

  1. Code Refinements:
  • Refactored stats.ts: The stats.ts file under src/commands/Slash/Info has been optimized by removing the unused import IClient. This change simplifies the code and improves readability.
  • Updated getVtubers.ts: In src/commands/Slash/Sdk/getVtubers.ts, the query string option has been set as required, enhancing the command's robustness and ensuring consistent behavior.

Configuration and Deployment

  1. 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.
  1. 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

  1. 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.

  1. Ready Event Enhancement:
  • In src/events/ready.ts, the function getActivityType 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 in src/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.

Media

Discord_EeDhdPDZvq