output refactor

This commit is contained in:
Syping 2024-02-04 10:12:19 +01:00
parent 7e3696ce90
commit e2f3739fa1
6 changed files with 23 additions and 25 deletions

View file

@ -115,7 +115,7 @@ void bot::slashcommands::process_translate_command(dpp::cluster *bot, bot::setti
}
}
catch (const std::exception &exception) {
std::cerr << "[dtranslatebot] Exception: " << exception.what() << std::endl;
std::cerr << "[Exception] " << exception.what() << std::endl;
event.reply(dpp::message("Exception while processing command:\n"s + exception.what()).set_flags(dpp::m_ephemeral));
}
}