Commit Graph

  • e8dbf3db76 access RunnerConfig instead of manually using commands hash map Akulij 2025-05-23 16:29:54 +05:00
  • 1ff86f641f impl RunnerConfig::get_command_message Akulij 2025-05-23 16:27:06 +05:00
  • 31e78be68f change interface for ResolveValue Akulij 2025-05-23 16:26:35 +05:00
  • 217a074c95 create ResolveError Akulij 2025-05-23 16:24:17 +05:00
  • 1c17639c0e handle DbError in ScriptError Akulij 2025-05-23 16:23:54 +05:00
  • 9e35f4168e use DB and join_all Akulij 2025-05-23 16:23:12 +05:00
  • 178f2a2399 create ButtonRaw name, callback_name and literal getters Akulij 2025-05-23 16:21:26 +05:00
  • 1730107e9a create BotMessage.literal getter Akulij 2025-05-23 16:20:21 +05:00
  • 506fdcb260 create BotMessage.resolve_buttons Akulij 2025-05-23 16:19:37 +05:00
  • 6d5f748ab8 create ButtonLayout::resolve_raw Akulij 2025-05-23 16:15:44 +05:00
  • cbb9c0c335 botscript: create ButtonLayout enum Akulij 2025-05-23 16:13:56 +05:00
  • f8c63e5315 create BotMessage.fill_literal method Akulij 2025-05-23 16:04:03 +05:00
  • 66180e0cfb add optional literal string in BotMessage Akulij 2025-05-23 16:03:12 +05:00
  • 1117af0724 impl ButtonName.resolve_name Akulij 2025-05-23 15:49:30 +05:00
  • 99758500b3 fix mainbot.js: start_buttons: return actual buttons Akulij 2025-05-23 15:28:41 +05:00
  • d174ee7bc7 fix: handle Runner in BotController Akulij 2025-05-21 14:07:02 +05:00
  • ca2e661a0e fix: in Runner's init_config use deserialize_js instead of js_into Akulij 2025-05-21 14:06:09 +05:00
  • c33c67044a delete test test_deserialization_main, since it isnot actual anymore Akulij 2025-05-21 13:04:08 +05:00
  • d1b6d153d4 create call and call_args methods for BotFunction Akulij 2025-05-21 12:53:26 +05:00
  • 0dc71fda08 fix BotFunction's call_context method Akulij 2025-05-21 12:46:46 +05:00
  • 970ce07280 fix name of stateful_msg_handlers in Parcelable field getter Akulij 2025-05-21 12:41:04 +05:00
  • 940a832561 mainbot.js: use function in handler instead of string function name Akulij 2025-05-21 12:33:03 +05:00
  • a15cdeadf9 mainbot.js: create example function enter_name Akulij 2025-05-21 12:32:45 +05:00
  • f5a894fe37 mainbot.js: change comment style for handler example Akulij 2025-05-21 12:31:43 +05:00
  • a4e8ea0390 mainbot.js: use function in buttons field instead of function name Akulij 2025-05-21 12:28:56 +05:00
  • 6fa398401d restore functions in deserialize_js Akulij 2025-05-21 12:28:24 +05:00
  • 6ea26c0618 change injectable template in DeserializeJS to correct one Akulij 2025-05-21 12:27:27 +05:00
  • b76392d597 impl Parcelable for all RunnerConfig types Akulij 2025-05-21 12:26:09 +05:00
  • ad58587160 fix test: use BotFunction's method by_name Akulij 2025-05-21 12:24:16 +05:00
  • 1aed17fa30 specify ResolveValue in recursive resolve call Akulij 2025-05-21 12:21:36 +05:00
  • 684895a554 change BotFunction implementation to be compatible with js function injection Akulij 2025-05-21 12:19:39 +05:00
  • d5f39e4e60 create Parcelable trait with default implementations Akulij 2025-05-21 12:11:05 +05:00
  • 2a4ed51824 limit CD workflow to triger only on main branch push Akulij 2025-05-20 08:52:53 +05:00
  • d1b25b52c1 fix: use KeyboardDefinition in BotMessage Akulij 2025-05-20 08:49:52 +05:00
  • 2c5802eaeb delete unnecessary literal field in ButtonRaw Akulij 2025-05-20 08:49:23 +05:00
  • bd800e88eb create predefined buttons layout example in mainbot.js Akulij 2025-05-20 08:48:34 +05:00
  • a2e1354bee fix missing #[serde(untagged)] on keyboard layout structs Akulij 2025-05-20 08:47:23 +05:00
  • 55d53bd140 create keyboard struct definition with resolvement trait Akulij 2025-05-20 08:32:28 +05:00
  • ea007127ff test for DeserializerJS::deserialize_js Akulij 2025-05-20 08:32:09 +05:00
  • 0a60b0469f create DeserializerJS::inject_templates Akulij 2025-05-20 08:29:40 +05:00
  • 40eec7d38d fix js_into: self is already a reference Akulij 2025-05-20 04:36:19 +05:00
  • 2ccfc19a6c create filter to handle botscript-defined commands Akulij 2025-05-20 02:47:00 +05:00
  • e0c00d68f9 derive Clone on BotCommand Akulij 2025-05-20 01:16:52 +05:00
  • 0e10cdbdf0 create command module Akulij 2025-05-20 01:06:16 +05:00
  • 29cd73e98f create basic handler to answer BotMessage Akulij 2025-05-20 00:44:08 +05:00
  • 3d9a1c31b4 use RunnerConfig in BotController Akulij 2025-05-20 00:42:32 +05:00
  • 5c8cadf7a0 create test for deserealization of result of js function Akulij 2025-05-20 00:40:25 +05:00
  • 534a0e6090 create init_config method for Runner Akulij 2025-05-20 00:39:39 +05:00
  • 135139514b update btoscript struct definitions Akulij 2025-05-20 00:39:15 +05:00
  • f6b18af5dd derive clone on BoMessage Akulij 2025-05-20 00:38:29 +05:00
  • 22ab941ed8 create buttons definition example in mainbot.js Akulij 2025-05-20 00:33:51 +05:00
  • cddf5986ba use from_js Akulij 2025-05-19 23:58:53 +05:00
  • 3f8f25fff9 create SerdeError for ScriptError Akulij 2025-05-19 23:57:22 +05:00
  • eb63743714 create js_into for JsValue Akulij 2025-05-19 23:55:44 +05:00
  • c2e02efc47 create call_context method for BotFunction Akulij 2025-05-19 23:54:39 +05:00
  • c8c67b54e3 make botFunction a struct Akulij 2025-05-19 23:54:08 +05:00
  • 7dbad400cc mainbot.js: fix missing comma Akulij 2025-05-18 22:19:27 +03:00
  • 3d6bf15806 add somecomplicatedcmd as an example in mainbot.js Akulij 2025-05-18 22:19:09 +03:00
  • 6299f6d815 add comment about default value of buttons in mainbot.js Akulij 2025-05-18 22:18:37 +03:00
  • 8e9d5b4f1d add stateful_msg_handlers example to mainbot.js Akulij 2025-05-18 16:30:46 +03:00
  • 05b298e61c add more command example to mainbot.js Akulij 2025-05-18 16:30:25 +03:00
  • 48cbd4c7d0 fix missing commas in mainbot.js Akulij 2025-05-18 16:14:02 +03:00
  • a643a707ed new specification of bot commands definition Akulij 2025-05-18 16:13:17 +03:00
  • e7d43adc40 create structs for bot's configuration definition Akulij 2025-05-18 16:10:03 +03:00
  • a6206d3d6f use quickjs_rusty's from_js in tests Akulij 2025-05-18 16:09:34 +03:00
  • 96996fd33d update mainbot.js with new specification Akulij 2025-05-18 16:08:34 +03:00
  • bf032e6ce4 create test for deserealization of mainbot.js Akulij 2025-05-18 16:07:40 +03:00
  • 9d5bf86289 create recursive_format function just for tests Akulij 2025-05-18 16:05:10 +03:00
  • 0c927448d2 create mainbot.js where main bot's logic will be contained Akulij 2025-05-10 03:28:00 +03:00
  • 08c1b67f02 create botscript runner Akulij 2025-05-10 03:27:35 +03:00
  • d39d2c8144 cargo add quickjs-rusty Akulij 2025-05-10 03:25:53 +03:00
  • 4ba2d87ee0 create function for user replies to support Akulij 2025-05-09 20:35:39 +03:00
  • 2cf71b964d update users state to MessageForwardReply on support reply Akulij 2025-05-09 19:09:09 +03:00
  • abc079831d create MessageForwardReply state Akulij 2025-05-09 19:08:37 +03:00
  • 2590055ea1 fix: enable html parse mode for message sent from support Akulij 2025-05-09 00:29:36 +03:00
  • aaed6fcdca store MessageForward in LeaveApplication callback Akulij 2025-05-09 00:25:30 +03:00
  • c1c331ab29 return chat and message id in answer message Akulij 2025-05-09 00:24:59 +03:00
  • 729f0c3eea return teloxide's Message struct in send_application_to_chat Akulij 2025-05-09 00:22:34 +03:00
  • 27a829b784 create AdminMisconfiguration error Akulij 2025-05-09 00:21:54 +03:00
  • c69b6595fd handle replies to MessageForward from support chat Akulij 2025-05-08 23:55:23 +03:00
  • 091a42bf31 fix: message id in MessageForward should be i32 Akulij 2025-05-08 23:23:39 +03:00
  • 2acda3087b create MessageForward Akulij 2025-05-08 23:15:54 +03:00
  • 25b980a2ff /users: put @ before username Akulij 2025-05-05 18:52:09 +03:00
  • c2aebcd509 create /cancel admin command Akulij 2025-05-05 18:46:05 +03:00
  • f6adaea70c create /users admin command Akulij 2025-05-05 18:44:05 +03:00
  • 6088050d1a cargo add itertools Akulij 2025-05-05 18:43:50 +03:00
  • 4277fc5523 use answer_message_varianted_silence_flag in replace message Akulij 2025-05-04 19:18:33 +03:00
  • 4e95c846d1 use text variations in replace_message Akulij 2025-05-04 19:18:05 +03:00
  • 624951392e create answer_message_varianted_silence_flag Akulij 2025-05-04 19:17:27 +03:00
  • f69eff72d6 store variant in Message Akulij 2025-05-04 19:14:54 +03:00
  • af53efca0e change variant_text naming asnwer_message_varianted, to not mix up with argument Akulij 2025-05-04 19:13:12 +03:00
  • d68c7d688c store variants in message info holder Akulij 2025-05-04 19:10:33 +03:00
  • c371f81008 send /start message variants based on meta (?start=...) Akulij 2025-05-04 18:43:10 +03:00
  • d0882ffe0b admin: create /setalternative command to edit message variants Akulij 2025-05-04 18:42:28 +03:00
  • e68ba4b796 implement variant editing thru Edit state Akulij 2025-05-04 18:41:40 +03:00
  • f86286b1d4 use variant in answer_message_varianted Akulij 2025-05-04 18:11:55 +03:00
  • 92b43aed65 extend answer_message with LiteralAlternatives in new function answer_message_variant Akulij 2025-05-04 18:04:30 +03:00
  • 12567a6b97 create LiteralAlternative with get/set in db Akulij 2025-05-04 17:56:06 +03:00
  • 6099a2ba81 cd.yaml: call webhook to deploy built binary Akulij 2025-05-04 17:27:38 +03:00
  • 7bd3df4d81 cd.yaml: add id for bots artifact uploading Akulij 2025-05-04 17:24:11 +03:00