diff --git a/src/botscript.rs b/src/botscript.rs index ad1364f..2fd1576 100644 --- a/src/botscript.rs +++ b/src/botscript.rs @@ -592,6 +592,12 @@ impl RunnerConfig { bm.map(|bm| bm.fill_literal(command.to_string())) } + + pub fn get_callback_message(&self, callback: &str) -> Option { + let bm = self.dialog.buttons.get(callback).cloned(); + + bm.map(|bm| bm.fill_literal(callback.to_string())) + } } impl Parcelable for RunnerConfig {