bob-el-bot / BobTheBot

The discord bot for 🎲 RNG, 🖊️ quoting, 📜 fonts, 🔒 encryption, and ✨ more!
https://bobthebot.net
Other
2 stars 0 forks source link

Refactor SlashCommands That Have Matching MessageCommands #92

Open Quantam-Studios opened 9 months ago

Quantam-Studios commented 9 months ago

Currently there are 3 SlashCommands that have identical (or almost identical) logic as a MessageCommand, namely: /code preview, /analyze-link, and /quote new. The only one of the the 3 that uses a helper function to minimize redundant code is /analyze-link. This should not be he case and as such the other two commands need to be refactored to rely on helpers which handle the identical parts.