nplay-team / moderation-bot

A custom moderation bot for the NPLAY community server
https://discord.gg/nplay
MIT License
0 stars 0 forks source link

Refactored whole project and added embeds #18

Closed SachsenspieltCoding closed 3 months ago

SachsenspieltCoding commented 3 months ago

With this PR, many refactors have been done. Plus, an embed system has been added.

From now on, commands are now called "modules" and are seperated in different files: File Name Meaning
.commands.ts Contains all definition for slash commands, using discordx decorators.
.service.ts Contains all the logic for the slash commands or other interactions.
.helper.ts Contains all public available logic, which is also meant to be used outside the module, like DB queries etc.
.types.ts Contains all types, enums and interfaces for that specific module.
.components.ts Contains all components like Modals or Buttons for that module.
.guards.ts Contains all guards, which this module can handle. This is especially used in the permission system
SachsenspieltCoding commented 3 months ago

@Kaktushose Could you re-approve this PR please? I just fixed the merge conflicts GitHub wasn't capable off