mirror of
https://github.com/Syping/dtranslatebot.git
synced 2025-12-12 22:56:25 +01:00
clean up and refactor some code
This commit is contained in:
parent
e2f3739fa1
commit
72ba15c798
7 changed files with 69 additions and 46 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue