ZumitoTeam / zumito-framework

Framework for creating a bot for discord
https://framework.zumito.dev
7 stars 1 forks source link

Refactoring #28

Closed fernandomema closed 1 year ago

fernandomema commented 1 year ago

With this pull request, some refactors was made:

reviewpad[bot] commented 1 year ago

AI-Generated Summary: This pull request contains several changes related to ESLint, TypeScript, and events. Notable changes include the addition of the eslint-plugin-check-file package and some configuration updates in .eslintrc.json to support PASCAL_CASE enforcement for filenames. A new Github workflow, pull_request.yml, has been added. Two files, InteractionCreate.ts and MessageCreate.ts, have been updated, and two new files, EventManager.ts and InteractionIdGenerator.ts, have been added. The updates in ZumitoFramework.ts include the creation of a new EventManager object and changes related to managing the Discord client.

reviewpad[bot] commented 1 year ago

Reviewpad Report

:bangbang: Errors

:warning: Warnings

reviewpad[bot] commented 1 year ago

AI-Generated Summary: This pull request includes several changes and improvements to your code:

  1. It removes eslint-plugin-prettier from the ESLint configuration, and adds eslint-plugin-check-file for checking file naming conventions.

  2. It adds a new GitHub Actions workflow pull_request.yml for running the build and publishing a new package version with a beta tag on pull requests.

  3. It adds new VSCode settings for automatically fixing your code with ESLint when saving files.

  4. It updates package-lock.json and adds eslint-plugin-check-file as a new dev dependency.

  5. It renames InteractionCreate.ts and MessageCreate.ts files to match PASCAL_CASE naming convention.

  6. It adds a new file EventManager.ts for managing event emitters and listeners, initializing the event manager in ZumitoFramework.ts, and updates how events are registered.

  7. It adds an InteractionIdGenerator.ts utility for generating IDs for interactions.

Please review these changes and provide feedback if needed.

github-actions[bot] commented 1 year ago

Beta tag version created: 1.1.75. You can install it with npm install zumito-framework@1.1.75.

reviewpad[bot] commented 1 year ago

AI-Generated Summary: This pull request introduces several changes related to code organization, file naming conventions, event management, and linting rules. Some major updates include adding the EventManager class, renaming event files with PascalCase, updating .eslintrc.json rules, and an InteractionIdGenerator utility. Other changes include various modifications within the src/ directory to accommodate these updates.