From 5197279f0c90b9cc35ca04c999d00920444f19ba Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Mon, 28 Oct 2024 06:47:13 +0100 Subject: [PATCH] Add /answer superposition --- src/services/telegram/commands/answer.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/services/telegram/commands/answer.rs b/src/services/telegram/commands/answer.rs index e7b20962..51f78809 100644 --- a/src/services/telegram/commands/answer.rs +++ b/src/services/telegram/commands/answer.rs @@ -1,16 +1,16 @@ use anyhow::Context; -use rand::SeedableRng; use rand::seq::SliceRandom; -use teloxide::Bot; +use rand::SeedableRng; use teloxide::payloads::SendMessageSetters; use teloxide::prelude::{Message, Requester}; use teloxide::types::ReplyParameters; +use teloxide::Bot; use crate::services::telegram::commands::CommandResult; // Cerchiamo di tenere bilanciate le tre colonne, o almeno le prime due. // Se avete un'idea ma metterebbe troppe opzioni in un'unica categoria, mettetela sotto commento. -const ANSWERS: [&str; 60] = [ +const ANSWERS: [&str; 61] = [ // risposte "sì": 20 "🔵 Sì.", "🔵 Decisamente sì!", @@ -76,6 +76,9 @@ const ANSWERS: [&str; 60] = [ "❔ idk dude", "❔ Non mi è permesso condividere questa informazione.", "❔ [RADIO] Mantengo la posizione.", + + // superposizione: 1 + "🔵❌ Yesn't.", ]; pub async fn handler(bot: &Bot, message: &Message) -> CommandResult {