416rehman / splite

SPLITE - Discord Bot with Slash Command Handler and Endpoint Handler, supporting AI, Music, Moderation, and more!
GNU General Public License v3.0
104 stars 28 forks source link

Refactor: hate command to use slash commands #23

Closed shawnyu5 closed 2 years ago

shawnyu5 commented 2 years ago

The command hate has been refactored to use slash commands. However I was not able to get imgFlip working so I was not able to fully test out the command, but the slash command behavior behaves the same way as the regular text command.

Should wait for #21 to be merged to clean up commit history.

416rehman commented 2 years ago

The logic is reused in both the method and results in code duplication. Move the logic to a seperate function and call it from both the methods. Use the avatar command as a reference https://github.com/416rehman/splite/blob/production/src/commands/info/avatar.js

shawnyu5 commented 2 years ago

Right okay fixed

shawnyu5 commented 2 years ago

Also added nodemon as a dev dependency

shawnyu5 commented 2 years ago

Should I be working that hard to keep compatibility with older text commands?