diff --git a/mainbot.js b/mainbot.js index 55dfab9..1e32c27 100644 --- a/mainbot.js +++ b/mainbot.js @@ -24,6 +24,7 @@ const dialog = { }, start: start_msg, leave_application: { + literal: "left_application_msg", handler: leave_application }, ask_question: {} diff --git a/src/bot_handler.rs b/src/bot_handler.rs index d85ddfd..ff380b6 100644 --- a/src/bot_handler.rs +++ b/src/bot_handler.rs @@ -75,6 +75,11 @@ async fn handle_botmessage(bot: Bot, mut db: DB, bm: BotMessage, msg: Message) - None => break 'prop true, }; let jsuser = to_js(ctx, &tguser).unwrap(); + info!( + "Calling handler {:?} with msg literal: {:?}", + handler, + bm.literal() + ); match handler.call_args(vec![jsuser]) { Ok(v) => { if v.is_bool() {