Commit Graph

  • 5d123250b3 remove unused Cargo.nix main akulij 2025-07-31 01:33:49 +00:00
  • d70c8776bc rm Cargo.mix since it's not used anymore dev Akulij 2025-07-31 07:32:04 +06:00
  • 9c846618d1 Merge pull request 'fast commit' (#26) from dev into main akulij 2025-06-18 17:32:42 +00:00
  • 9c0e9a5903 fast commit Akulij 2025-06-18 21:59:47 +06:00
  • 56f7459ad8 Merge pull request 'dev' (#25) from dev into main akulij 2025-06-18 17:10:44 +00:00
  • 3d9e0f7ee7 fast commit Akulij 2025-06-18 21:59:47 +06:00
  • d3495c9a44 refactor bot manager Akulij 2025-06-08 18:12:16 +05:00
  • 3d60f31d99 optimize algorithm in NotificationTime Akulij 2025-06-08 17:52:18 +05:00
  • f16554b764 fix: use separate db for tests Akulij 2025-06-08 15:38:58 +05:00
  • e239ff1c44 fix test_get_random_users Akulij 2025-06-08 15:38:51 +05:00
  • 2fefe22846 fix test_drop_media Akulij 2025-06-08 15:35:50 +05:00
  • e3e8a0cf79 refactor /src/botscript/application.rs Akulij 2025-06-08 15:01:58 +05:00
  • b86a8f4a52 impl ScriptError::from for types BotError and PoisonError Akulij 2025-06-08 15:01:14 +05:00
  • 7e01186178 use async_trait for RawCall Akulij 2025-06-07 03:33:13 +05:00
  • 12af8f3653 delete unused import Akulij 2025-06-07 03:31:34 +05:00
  • fd24b6953e on downloading new script notify admin about failure Akulij 2025-06-07 03:31:03 +05:00
  • 4b78ebbb7b allow unwrap in src/commands.rs's tests Akulij 2025-06-07 03:30:45 +05:00
  • 93852b9155 refactor timezoned time creation in botscript Akulij 2025-06-07 03:23:35 +05:00
  • 1edaac9d8a remove unnecessary use on Arc in Runner Akulij 2025-06-07 03:18:06 +05:00
  • 51e4d1a1fc fix warnings in botscript/application Akulij 2025-06-07 03:17:34 +05:00
  • c0eb5ba412 bot_manager: fix MutexGuard lifetime Akulij 2025-06-07 02:59:07 +05:00
  • c3386a1e2f use MessageAnswererError in message_answerer.rs Akulij 2025-06-07 02:56:17 +05:00
  • 3c0ae02139 fix: reutnr error from bot managers dispatcher Akulij 2025-06-07 02:55:29 +05:00
  • 0c1ab767d3 handle MessageAnswererError in BotError Akulij 2025-06-07 02:55:09 +05:00
  • 6776716faf fix $crate literal in query_call_consume macro Akulij 2025-06-07 02:54:35 +05:00
  • 5399fb682e handle MessageAnswererError in ScriptError Akulij 2025-06-07 02:54:08 +05:00
  • c9a3916304 do not use unwrap in botscript/application.rs Akulij 2025-06-07 02:53:44 +05:00
  • 18d6331344 bot manager: propagate errors Akulij 2025-06-07 02:53:06 +05:00
  • f6a5a42b71 propagate error instead of unwrap in bot_handler.rs Akulij 2025-06-07 02:52:37 +05:00
  • 8e57f5da7e fix: do not box leak in botscript/application Akulij 2025-06-07 02:27:42 +05:00
  • e6c9cfb0c1 fix warnings in botscript.rs Akulij 2025-06-07 02:27:05 +05:00
  • 0c3fb0788a delete unnecessary printlns Akulij 2025-06-07 02:10:04 +05:00
  • bd8b1e8843 impl GetCollection via async_trait Akulij 2025-06-07 02:08:00 +05:00
  • 5a7bb0e0f6 clippy fix Akulij 2025-06-07 01:50:30 +05:00
  • 4a090de77b fix warnings in src/message_answerer.rs Akulij 2025-06-07 01:46:35 +05:00
  • 3bb03365ed fix warnings in main.rs Akulij 2025-06-07 01:41:25 +05:00
  • b27edd421d delete not used anymore UserCommands Akulij 2025-06-07 01:40:12 +05:00
  • 7752160807 delete unused functions in main.rs Akulij 2025-06-07 01:39:01 +05:00
  • 3dbfbe48ce fix: reuse init logic in Runner::init_with_db Akulij 2025-06-07 01:37:34 +05:00
  • 99403b7282 fix: implement js's db callback without box leak Akulij 2025-06-07 01:28:21 +05:00
  • b8bd104f3d use CallbackInfo for buttons Akulij 2025-06-06 03:32:58 +05:00
  • 6e31fa86e6 create function that stores button parts and creates tg button wrapper Akulij 2025-06-06 03:32:27 +05:00
  • bde3c1a0e1 fix: call "answer callback query" when handling callback Akulij 2025-06-06 02:08:39 +05:00
  • 5b485c0329 Merge pull request 'mainbot.js: define free_doc button' (#24) from dev into main akulij 2025-06-05 21:05:48 +00:00
  • 20af818923 mainbot.js: define free_doc button Akulij 2025-06-06 02:05:17 +05:00
  • 9bc104a0d5 Merge pull request 'fix: make BotDialog variants optional via providing default value' (#23) from dev into main akulij 2025-06-05 20:58:02 +00:00
  • 31d38fbf48 fix: make BotDialog variants optional via providing default value Akulij 2025-06-06 01:57:04 +05:00
  • 7147da0cb5 Merge pull request 'dev' (#22) from dev into main akulij 2025-06-05 20:53:03 +00:00
  • 37d2480b4a update mainbot.js Akulij 2025-06-06 01:52:18 +05:00
  • a869362bf5 notify admin when literal not found instead of silently failing Akulij 2025-06-06 01:51:27 +05:00
  • b114c80097 update handling of varianted messages Akulij 2025-06-06 01:38:22 +05:00
  • 591244b5a1 craate getter for varianted commands Akulij 2025-06-06 01:37:35 +05:00
  • 06a6542349 change design of variants implementation in BotConfig Akulij 2025-06-06 01:37:03 +05:00
  • 0bc7978c99 fix deserialization Message's created_at Akulij 2025-06-06 01:35:25 +05:00
  • 2e356ac067 make BotMessage's handler to recursively generate BotMessage Akulij 2025-06-06 00:19:37 +05:00
  • 2662a00776 provide MessageInfo to BotMessage's handler Akulij 2025-06-05 23:14:05 +05:00
  • 5669de716a create MessageInfo and MessageInfoBuilder Akulij 2025-06-05 23:13:39 +05:00
  • 6d017b1993 fix: provide default serde value for BotMessage.variants Akulij 2025-06-05 23:12:34 +05:00
  • 8a3e8c4705 filter variant to use only defined in runtime config Akulij 2025-06-05 22:59:28 +05:00
  • 50e2d6e824 use variants of messages Akulij 2025-06-05 22:59:12 +05:00
  • c301b72f0c create MessageVariant Akulij 2025-06-05 22:56:52 +05:00
  • 4103c5dfbe create BotMessage.update_defaults method for some logic for default values Akulij 2025-06-05 22:36:30 +05:00
  • 303dbfdaa8 make BotMessage.meta optional Akulij 2025-06-05 22:35:51 +05:00
  • b202f385fe fix: make BotMessage.fill_literal consuming self Akulij 2025-06-05 22:33:55 +05:00
  • 3b4ab9b481 implement usage of BotMessage.meta flag in handle_botmessage Akulij 2025-06-05 22:21:44 +05:00
  • f58f559f8d create BotMessage.meta flag Akulij 2025-06-05 22:21:14 +05:00
  • 9dfa7c52d9 add field created_at to db::Message struct Akulij 2025-06-05 21:48:47 +05:00
  • 23c4c18b91 Merge pull request 'do not show show_projects button (probably temporarly)' (#21) from dev into main akulij 2025-06-04 08:34:25 +00:00
  • 4b91108d1a do not show show_projects button (probably temporarly) Akulij 2025-06-04 13:33:54 +05:00
  • 83e5f86ac2 Merge pull request 'Change mainbot's buttons' (#20) from dev into main akulij 2025-06-04 08:14:32 +00:00
  • da4b5fdb09 add more buttons for more_info Akulij 2025-06-04 13:05:45 +05:00
  • 47782ca08e add emoji for "Go Home" button text Akulij 2025-06-04 13:05:24 +05:00
  • 03bb5b231e replace on more_info Akulij 2025-06-04 13:05:03 +05:00
  • bb32f5f823 change order of /start buttons Akulij 2025-06-04 13:04:26 +05:00
  • 2515e8e1b6 test run_script_file_main: delete call of start_buttons, since it is not defined anymore Akulij 2025-06-03 19:51:01 +05:00
  • 1211e78b22 Merge pull request 'extend /commit command: add info about build time' (#19) from dev into main akulij 2025-06-02 12:14:34 +00:00
  • 6c6ded6977 extend /commit command: add info about build time Akulij 2025-06-02 17:13:44 +05:00
  • 3e3eb75220 Merge pull request 'Feature: BotNotificator' (#18) from dev into main akulij 2025-06-02 11:54:14 +00:00
  • daf1e09176 delete unnecessary println Akulij 2025-06-02 16:51:19 +05:00
  • de68e41725 create notificator Akulij 2025-06-02 16:49:05 +05:00
  • 00af4fae4d create MessageAnswerer.answer_text Akulij 2025-06-02 16:48:12 +05:00
  • 632e77762e fix utils.rs: reuqire Sync Akulij 2025-06-02 16:45:59 +05:00
  • 3d293501f2 db: create test for get_random_users Akulij 2025-06-02 16:45:32 +05:00
  • 597e6de09e db: create get_random_users Akulij 2025-06-02 16:45:10 +05:00
  • b2df5bf4f3 db: some functions do not require mut db Akulij 2025-06-02 16:44:48 +05:00
  • 0ca057c064 create test for BotNotification Akulij 2025-06-02 16:43:53 +05:00
  • af3dba2873 updatte mainbot.js Akulij 2025-06-02 16:42:32 +05:00
  • c9dc1fb479 create tests for BotNotification deserealization Akulij 2025-06-02 12:03:28 +05:00
  • 91bf739365 update BotNotification specification Akulij 2025-06-02 12:03:16 +05:00
  • 57652c2776 fix: infinite try_from deserealization Akulij 2025-06-02 12:02:28 +05:00
  • fd7c813b0e create specification for notifications Akulij 2025-06-02 11:39:44 +05:00
  • ff816c4fdc update revision of quickjs-rusty akulij 2025-06-02 05:21:45 +00:00
  • 0ba10a1600 mainbot.js: do not print user akulij 2025-06-01 14:01:26 +00:00
  • 0c94673766 update quickjs-rusty revision akulij 2025-06-01 14:01:08 +00:00
  • 4aa3cb5080 specify commit for own quickjs-rusty akulij 2025-06-01 13:36:25 +00:00
  • af4cad6765 refactor debug prints Akulij 2025-06-01 17:48:40 +05:00
  • bdc0d6432c print info value returned Akulij 2025-06-01 17:42:14 +05:00
  • e74f875e3b create /commit command to get commit hash from which this bot was built Akulij 2025-06-01 17:37:58 +05:00
  • 1669327df2 cargo add git-const Akulij 2025-06-01 17:37:49 +05:00
  • 1e046e2e19 do not use private function of quickjs-rusty Akulij 2025-06-01 17:03:45 +05:00