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:
parent
c815ff5031
commit
c5e5e46aad
2 changed files with 3 additions and 3 deletions
2
cosched
2
cosched
|
@ -1 +1 @@
|
|||
Subproject commit d12406aba981b34789bc95dfaaff6507aa77d7e7
|
||||
Subproject commit 671bdb57be67ee2b8838070e4676a81cb5c043c6
|
4
main.cpp
4
main.cpp
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue