clean up and refactor some code

This commit is contained in:
Syping 2024-02-05 12:55:01 +01:00
parent e2f3739fa1
commit 72ba15c798
7 changed files with 69 additions and 46 deletions

View file

@ -19,6 +19,13 @@
#include "slashcommands.h"
using namespace std::string_literals;
void bot::slashcommands::process_command_event(dpp::cluster *bot, bot::settings::settings *settings, const dpp::slashcommand_t &event)
{
if (event.command.get_command_name() == "translate" || event.command.get_command_name() == "translate_pref") {
bot::slashcommands::process_translate_command(bot, settings, event);
}
}
void bot::slashcommands::process_translate_command(dpp::cluster *bot, bot::settings::settings *settings, const dpp::slashcommand_t &event)
{
try {