Commit Graph

  • 79acdc283e use my fork of quickjs-rusty Akulij 2025-06-01 16:41:04 +05:00
  • 97e7886149 resture jsuser as argument Akulij 2025-06-01 16:40:41 +05:00
  • 585c3599ab exp Akulij 2025-06-01 13:53:29 +05:00
  • f08af9609e sdfalkajsdfj Akulij 2025-06-01 13:39:10 +05:00
  • 12288ced5c Merge pull request 'lsjdf' (#16) from dev into main akulij 2025-06-01 07:18:44 +00:00
  • d442cccebe lsjdf Akulij 2025-06-01 12:17:53 +05:00
  • 5955fc297d Merge pull request 'use js to string' (#15) from dev into main akulij 2025-06-01 07:14:29 +00:00
  • 8742740e6e use js to string Akulij 2025-06-01 12:14:06 +05:00
  • bf816c4c5c Merge pull request 'dev' (#14) from dev into main akulij 2025-06-01 07:07:17 +00:00
  • f8628a11f5 make BotRuntime for js runtime management Akulij 2025-06-01 12:06:38 +05:00
  • 8b871ec147 fix: unnecessary BotController clone for script handler generation Akulij 2025-06-01 11:42:50 +05:00
  • 92c97abd4a Merge pull request 'change order of drop for BotController' (#13) from dev into main akulij 2025-06-01 06:38:48 +00:00
  • af85c57c67 change order of drop for BotController Akulij 2025-06-01 11:38:04 +05:00
  • ab3cf214d1 Merge pull request 'fix cd.yaml: build release version' (#12) from dev into main akulij 2025-06-01 06:17:39 +00:00
  • 1971ebf4b5 fix cd.yaml: build release version Akulij 2025-06-01 11:17:06 +05:00
  • a5f02631e8 Merge pull request 'sdafasklj' (#11) from dev into main akulij 2025-06-01 06:03:23 +00:00
  • 5978db5f2d sdafasklj Akulij 2025-06-01 11:02:58 +05:00
  • e71cde3735 Merge pull request 'more debug info' (#10) from dev into main akulij 2025-05-31 10:29:38 +00:00
  • 48e4d7b284 more debug info Akulij 2025-05-31 15:28:48 +05:00
  • c80fcbe025 Merge pull request 'temporarly use debug version' (#9) from dev into main akulij 2025-05-31 10:23:08 +00:00
  • 7b39cd18cf Merge branch 'main' into dev akulij 2025-05-31 10:22:37 +00:00
  • 5ff1d3f49e temporarly use debug version Akulij 2025-05-31 15:22:02 +05:00
  • a0b22e2ef3 Merge pull request 'more debug info' (#8) from dev into main akulij 2025-05-31 10:19:34 +00:00
  • 351dd27ab3 more debug info Akulij 2025-05-31 15:19:06 +05:00
  • 0c1f08a9db Merge pull request 'more debug info' (#7) from dev into main akulij 2025-05-31 10:14:05 +00:00
  • a47665c9c0 more debug info Akulij 2025-05-31 15:13:31 +05:00
  • 40dec27adc Merge pull request 'more debug info' (#6) from dev into main akulij 2025-05-31 10:06:20 +00:00
  • 4eab8e1f26 more debug info Akulij 2025-05-31 15:05:56 +05:00
  • 1d80fd056b Merge pull request 'temporarly use println' (#5) from dev into main akulij 2025-05-31 09:58:09 +00:00
  • 198c363038 temporarly use println Akulij 2025-05-31 14:57:39 +05:00
  • 62b68a6451 Merge pull request 'more debug info' (#4) from dev into main akulij 2025-05-31 09:40:50 +00:00
  • a2455008ba more debug info Akulij 2025-05-31 14:40:20 +05:00
  • 9be1f3ec1d Merge pull request 'set literal for leave_application' (#3) from dev into main akulij 2025-05-31 09:33:57 +00:00
  • fe08b42581 Merge branch 'main' into dev akulij 2025-05-31 09:33:34 +00:00
  • f5d108d350 add debug info when calling js handler Akulij 2025-05-31 14:32:23 +05:00
  • 126708d8fa set literal for leave_application Akulij 2025-05-31 14:32:08 +05:00
  • d49971995c Merge pull request 'fix cd.yaml: install clang for quickjs-ng compilation' (#2) from dev into main akulij 2025-05-31 09:12:23 +00:00
  • 689d191d53 cd.yaml: install clang for quickjs-ng compilation Akulij 2025-05-31 14:09:48 +05:00
  • e9059f2bdf create build.yaml workflow to test build on dev branch Akulij 2025-05-31 14:01:12 +05:00
  • f7318f3661 Merge pull request 'migration to JS engine' (#1) from dev into main akulij 2025-05-31 08:49:52 +00:00
  • adad94ad43 update mainbot.js logic Akulij 2025-05-31 13:47:46 +05:00
  • 714853730a create /cancel command for users Akulij 2025-05-31 13:47:14 +05:00
  • b980a653cb attach user_application to runner Akulij 2025-05-31 13:46:54 +05:00
  • b8d07d0ad5 create MessageForward.store_db to store by DB type Akulij 2025-05-31 13:45:45 +05:00
  • 2e447e87fd create Application.store_db to store by DB type Akulij 2025-05-31 13:45:02 +05:00
  • d749b57811 call js function handler if set in script_handler Akulij 2025-05-31 13:43:41 +05:00
  • a106891050 create call_attacher for Runner to attach global objects on initialization Akulij 2025-05-31 13:42:54 +05:00
  • 9cd0765030 create BotMessage js function handler getter Akulij 2025-05-31 13:42:10 +05:00
  • bc46e0fda4 create BotFunction context getter Akulij 2025-05-31 13:41:42 +05:00
  • 845071c800 create botscript application module for js's runtime user_application function Akulij 2025-05-31 13:39:17 +05:00
  • c936ea38a9 update mainbot.js Akulij 2025-05-31 11:04:35 +05:00
  • bee93b32d1 use BotController Akulij 2025-05-31 10:48:52 +05:00
  • 0265942449 enable Send for BotController Akulij 2025-05-31 10:48:15 +05:00
  • e993a6c941 derive Clone on Config Akulij 2025-05-31 10:47:49 +05:00
  • 6dfe9b839d fix logic: move bot insertion to db to /deploy command, instead of function in bot_manager Akulij 2025-05-31 10:45:34 +05:00
  • f27fb670bd create BotManager Akulij 2025-05-31 10:43:05 +05:00
  • 22025cde11 handle callbacks in script_handler Akulij 2025-05-31 10:35:52 +05:00
  • 3bd16a58cd add replace flag to BotMessage Akulij 2025-05-31 10:34:29 +05:00
  • 474795bd99 create RunnerConfig.get_callback_message Akulij 2025-05-31 10:34:06 +05:00
  • fdf1e352a6 add buttons field to BotDialog Akulij 2025-05-31 10:33:26 +05:00
  • 39e376195c create BotInstance::update_script Akulij 2025-05-31 10:31:09 +05:00
  • 308b15ed69 create BotInstance::restart_one and restart_all Akulij 2025-05-31 10:30:39 +05:00
  • 102fae25c7 create BotInstance::get_by_name Akulij 2025-05-31 10:30:03 +05:00
  • bc2397a32c derive Clone for BotInstance Akulij 2025-05-31 10:29:03 +05:00
  • fde7087172 create /newscript command handler Akulij 2025-05-31 10:28:22 +05:00
  • 67ad3c2acd plug provided handlers in start_bot Akulij 2025-05-28 11:11:25 +05:00
  • 866a028de1 move out bot handlers to separate module Akulij 2025-05-28 11:10:32 +05:00
  • e63187dcd3 rename botscript_command_handler to more correct handle_botmessage Akulij 2025-05-28 10:15:30 +05:00
  • 098cff72bd delete inspector in botscript handler Akulij 2025-05-28 10:13:11 +05:00
  • d428c8798d make script_handler return a public type Akulij 2025-05-27 15:35:40 +05:00
  • 6eb6f2f454 fix: start bot with it's db name Akulij 2025-05-27 15:34:50 +05:00
  • 2fdd8a346d fix: instead of actually starting bot on /deploy, just put info in DB Akulij 2025-05-27 15:08:03 +05:00
  • d10acc992a start bot instances in main Akulij 2025-05-27 14:21:36 +05:00
  • 8e3c647727 fix: handle io and RwLock error for bot manager Akulij 2025-05-27 14:20:02 +05:00
  • 8fed0daf4c extend BotController creation implementation Akulij 2025-05-27 14:17:29 +05:00
  • e1b6b5aa10 derive Clone for BotController Akulij 2025-05-27 14:14:23 +05:00
  • 4a35243a4c store RunnerConfig in BotController as atomic rw lock for thread safety Akulij 2025-05-27 14:13:28 +05:00
  • 1757571f35 create bot_name field in Config Akulij 2025-05-27 14:11:33 +05:00
  • 77ba6dcfc5 define const MAIN_BOT_SCRIPT Akulij 2025-05-27 14:10:48 +05:00
  • 6ac3665dee fix: add bot_handler to compile tree Akulij 2025-05-27 04:17:26 +05:00
  • ef5d74cf1c create bot_manager module to handle background bot start Akulij 2025-05-27 04:15:56 +05:00
  • 593316d541 cargo add lazy_static Akulij 2025-05-27 04:15:39 +05:00
  • a136558681 create MongodbStorage::from_db initializer Akulij 2025-05-27 04:09:47 +05:00
  • 9e99064bc5 create DB.with_name method Akulij 2025-05-27 04:09:05 +05:00
  • 3acd168155 make Runner thread safe Akulij 2025-05-27 04:08:27 +05:00
  • 4be9c034c9 use variable db name instead of hardcoded one Akulij 2025-05-26 20:50:25 +05:00
  • 9bbf481002 derive Clone on bot and runner config Akulij 2025-05-26 20:48:11 +05:00
  • 4384431696 create RunnerConfig::init_with_db Akulij 2025-05-26 20:47:35 +05:00
  • 13a861e74b cargo add serde_json Akulij 2025-05-26 20:45:59 +05:00
  • ff7f317ae5 create attach_db_obj for botscript Akulij 2025-05-26 20:44:34 +05:00
  • aac968e408 add RawCallError to ScriptError Akulij 2025-05-26 20:43:04 +05:00
  • cb7c888028 create RawCall trait, that will contain DB methods to call from script runtime Akulij 2025-05-26 20:22:46 +05:00
  • a33d4b393c impl GetCollection for CallDB Akulij 2025-05-26 20:16:12 +05:00
  • 9c15b0a375 create DbCollection and GetCollection traits Akulij 2025-05-26 20:15:27 +05:00
  • 4c149b6922 create BotInstance collection Akulij 2025-05-26 20:10:54 +05:00
  • a7433cd8cc create /deploy admin command Akulij 2025-05-26 20:10:12 +05:00
  • bdb30c8d98 create default script for new bots Akulij 2025-05-26 20:08:55 +05:00
  • d1c1b7500d create script_handler function that creates teloxide's handler for botscript dispatch Akulij 2025-05-26 20:06:07 +05:00
  • d5dbaa0b75 refactor message answer and replace Akulij 2025-05-25 09:40:41 +05:00
  • 4548419946 implement botscript_command_handler Akulij 2025-05-23 16:35:46 +05:00