1
0
Fork 0
mirror of https://gitlab.com/niansa/discord_llama.git synced 2025-03-06 20:48:25 +01:00

Updated cosched

This commit is contained in:
niansa 2023-05-22 23:58:24 +02:00
parent c815ff5031
commit c5e5e46aad
2 changed files with 3 additions and 3 deletions

@ -1 +1 @@
Subproject commit d12406aba981b34789bc95dfaaff6507aa77d7e7
Subproject commit 671bdb57be67ee2b8838070e4676a81cb5c043c6

View file

@ -76,7 +76,7 @@ private:
// Replace bot username with [43]
utils::str_replace_in_place(fres, bot.me.username, "[43]");
// Run translation
co_await translator_mutex.lock();
auto L = co_await translator_mutex.lock();
fres = co_await translator->translate(fres, "EN", show_console_progress);
translator_mutex.unlock();
// Replace [43] back with bot username
@ -97,7 +97,7 @@ private:
// Replace bot username with [43]
utils::str_replace_in_place(fres, bot.me.username, "[43]");
// Run translation
co_await translator_mutex.lock();
auto L = co_await translator_mutex.lock();
fres = co_await translator->translate(fres, config.language, show_console_progress);
translator_mutex.unlock();
// Replace [43] back with bot username