494 Commits

Author SHA1 Message Date
Akulij
51e4d1a1fc fix warnings in botscript/application 2025-06-07 03:17:34 +05:00
Akulij
c0eb5ba412 bot_manager: fix MutexGuard lifetime 2025-06-07 02:59:07 +05:00
Akulij
c3386a1e2f use MessageAnswererError in message_answerer.rs 2025-06-07 02:56:17 +05:00
Akulij
3c0ae02139 fix: reutnr error from bot managers dispatcher 2025-06-07 02:55:29 +05:00
Akulij
0c1ab767d3 handle MessageAnswererError in BotError 2025-06-07 02:55:09 +05:00
Akulij
6776716faf fix $crate literal in query_call_consume macro 2025-06-07 02:54:35 +05:00
Akulij
5399fb682e handle MessageAnswererError in ScriptError 2025-06-07 02:54:08 +05:00
Akulij
c9a3916304 do not use unwrap in botscript/application.rs 2025-06-07 02:53:44 +05:00
Akulij
18d6331344 bot manager: propagate errors 2025-06-07 02:53:06 +05:00
Akulij
f6a5a42b71 propagate error instead of unwrap in bot_handler.rs 2025-06-07 02:52:37 +05:00
Akulij
8e57f5da7e fix: do not box leak in botscript/application 2025-06-07 02:27:42 +05:00
Akulij
e6c9cfb0c1 fix warnings in botscript.rs 2025-06-07 02:27:24 +05:00
Akulij
0c3fb0788a delete unnecessary printlns 2025-06-07 02:10:04 +05:00
Akulij
bd8b1e8843 impl GetCollection via async_trait 2025-06-07 02:08:00 +05:00
Akulij
5a7bb0e0f6 clippy fix 2025-06-07 01:50:30 +05:00
Akulij
4a090de77b fix warnings in src/message_answerer.rs 2025-06-07 01:46:35 +05:00
Akulij
3bb03365ed fix warnings in main.rs 2025-06-07 01:43:50 +05:00
Akulij
b27edd421d delete not used anymore UserCommands 2025-06-07 01:40:12 +05:00
Akulij
7752160807 delete unused functions in main.rs 2025-06-07 01:39:01 +05:00
Akulij
3dbfbe48ce fix: reuse init logic in Runner::init_with_db 2025-06-07 01:37:34 +05:00
Akulij
99403b7282 fix: implement js's db callback without box leak 2025-06-07 01:28:21 +05:00
Akulij
b8bd104f3d use CallbackInfo for buttons 2025-06-06 03:32:58 +05:00
Akulij
6e31fa86e6 create function that stores button parts and creates tg button wrapper 2025-06-06 03:32:27 +05:00
Akulij
bde3c1a0e1 fix: call "answer callback query" when handling callback 2025-06-06 02:08:39 +05:00
Akulij
20af818923 mainbot.js: define free_doc button
All checks were successful
Build && Deploy / cargo build (push) Successful in 1m0s
2025-06-06 02:05:17 +05:00
Akulij
31d38fbf48 fix: make BotDialog variants optional via providing default value
All checks were successful
Build && Deploy / cargo build (push) Successful in 1m2s
2025-06-06 01:57:04 +05:00
Akulij
37d2480b4a update mainbot.js
All checks were successful
Build && Deploy / cargo build (push) Successful in 1m5s
2025-06-06 01:52:18 +05:00
Akulij
a869362bf5 notify admin when literal not found instead of silently failing 2025-06-06 01:51:27 +05:00
Akulij
b114c80097 update handling of varianted messages 2025-06-06 01:38:22 +05:00
Akulij
591244b5a1 craate getter for varianted commands 2025-06-06 01:37:35 +05:00
Akulij
06a6542349 change design of variants implementation in BotConfig 2025-06-06 01:37:03 +05:00
Akulij
0bc7978c99 fix deserialization Message's created_at 2025-06-06 01:35:25 +05:00
Akulij
2e356ac067 make BotMessage's handler to recursively generate BotMessage 2025-06-06 00:19:37 +05:00
Akulij
2662a00776 provide MessageInfo to BotMessage's handler 2025-06-05 23:16:06 +05:00
Akulij
5669de716a create MessageInfo and MessageInfoBuilder 2025-06-05 23:13:39 +05:00
Akulij
6d017b1993 fix: provide default serde value for BotMessage.variants 2025-06-05 23:12:56 +05:00
Akulij
8a3e8c4705 filter variant to use only defined in runtime config
All checks were successful
Build && Deploy / cargo build (push) Successful in 1m5s
2025-06-05 22:59:28 +05:00
Akulij
50e2d6e824 use variants of messages 2025-06-05 22:59:12 +05:00
Akulij
c301b72f0c create MessageVariant 2025-06-05 22:56:52 +05:00
Akulij
4103c5dfbe create BotMessage.update_defaults method for some logic for default values 2025-06-05 22:36:30 +05:00
Akulij
303dbfdaa8 make BotMessage.meta optional 2025-06-05 22:35:51 +05:00
Akulij
b202f385fe fix: make BotMessage.fill_literal consuming self 2025-06-05 22:35:16 +05:00
Akulij
3b4ab9b481 implement usage of BotMessage.meta flag in handle_botmessage 2025-06-05 22:21:44 +05:00
Akulij
f58f559f8d create BotMessage.meta flag 2025-06-05 22:21:14 +05:00
Akulij
9dfa7c52d9 add field created_at to db::Message struct
All checks were successful
Build && Deploy / cargo build (push) Successful in 1m3s
2025-06-05 21:48:47 +05:00
Akulij
4b91108d1a do not show show_projects button (probably temporarly)
All checks were successful
Build && Deploy / cargo build (push) Successful in 1m1s
2025-06-04 13:33:54 +05:00
Akulij
da4b5fdb09 add more buttons for more_info
All checks were successful
Build && Deploy / cargo build (push) Successful in 1m7s
2025-06-04 13:05:45 +05:00
Akulij
47782ca08e add emoji for "Go Home" button text 2025-06-04 13:05:24 +05:00
Akulij
03bb5b231e replace on more_info 2025-06-04 13:05:03 +05:00
Akulij
bb32f5f823 change order of /start buttons 2025-06-04 13:04:26 +05:00