Skip to content

Conversation

@notscrappie
Copy link
Collaborator

@notscrappie notscrappie commented Jun 27, 2024

Bot Rework

Essentially a re-write of the bot that adds possibly adds new stuff.

- Added Avatar, Banner & User Information context commands.
+ added application cmds updating
- Bot wouldn't launch without it.
- Added type injection.
- Added Mikro-ORM.
- Added logging.
- Moved bootstrapping to launch.ts
- Added packages necessary for type injection & database connection / management.
- Replaced nodemon / node --loader with tsx.
- Bot would crash if the command was a message context one as the target ID would be the message instead of the user.
- Reworked and re-added music commands.
- Added raw & LL related events.
- Extended the base Player & Manager classes to add new stuff.
- Added a new ButtonEmbed to avoid code repetition.
- Added new guards for the music system.
- Added new packages for pagination and other stuff.
auto generated file, needs to be fixed later
@sonarqubecloud
Copy link

// MAJOR CHANGES
- All rule handling (creating / deleting) is now handled by separate functions that also have checks against rule duplication.
- Added channel / role exemptions.

// MISC
- Suffixed all functions with _enable or _disable based on their functionality.
- Shortened the file by a couple hundred lines.

// BUG FIXES
- Fixed an issue where enabling a rule could lead to the entire "automod" entry in MongoDB to get overwritten with the new data instead of getting appended to the old data.
@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
1 Security Hotspot
3.5% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants