migration to JS engine #1

Merged
akulij merged 131 commits from dev into main 2025-05-31 08:49:52 +00:00
Owner
No description provided.
akulij added 131 commits 2025-05-31 08:49:30 +00:00
reason: wil be way less boilerplate for deserialization of JsValue to defined structs
reason: to handle errors from call of from_js
defines BotCommand struct
reason: everything passed in teloxide's filter_map asks Clone (or Copy) implementation
injection
previously called by stored template string instead of actual function
reason: earlier, Runner and js runtime in it were freed after init of
BotController, which potentially was able to lead into hanging function
in config without runtime, BUT, there is check in in JS_FreeRuntime to
have zero objects, so bug found without hesitation ;)
reason: it's not a responsibility of /deploy command to store bot info
AND starting bot thread, isntead it is responsible only for storing info
in DB, as every other command does, and then bot will lazily start by
bot manager
reason: easier to use with RwLock
akulij merged commit f7318f3661 into main 2025-05-31 08:49:52 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: akulij/gongbotrs#1
No description provided.