mirror of
https://github.com/Syping/dtranslatebot.git
synced 2026-04-01 21:30:40 +02:00
add /list languages command, minor fixes
This commit is contained in:
parent
7dcb64f7cf
commit
ea2c6c460f
5 changed files with 55 additions and 15 deletions
|
|
@ -36,6 +36,10 @@ void message_queue::add(message &&message)
|
|||
|
||||
void message_queue::process_message_event(dpp::cluster *bot, bot::settings::settings *settings, const dpp::message_create_t &event)
|
||||
{
|
||||
// We check for conditions we want to skip translation for
|
||||
if (event.msg.content.empty() || event.msg.has_thread())
|
||||
return;
|
||||
|
||||
if (event.msg.webhook_id) {
|
||||
const std::lock_guard<bot::settings::settings> guard(*settings);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue