From 5c2038024ebdfaaa5454b7c4f0444c75fb3ea0fd Mon Sep 17 00:00:00 2001 From: Kristofers Solo Date: Mon, 27 Oct 2025 13:22:22 +0200 Subject: [PATCH] chore: disable commands --- src/handler.rs | 1 + src/main.rs | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/handler.rs b/src/handler.rs index 615f292..82447c0 100644 --- a/src/handler.rs +++ b/src/handler.rs @@ -59,6 +59,7 @@ macro_rules! handler { }; } +#[must_use] pub fn create_handlers() -> Arc<[Handler]> { [ handler!( diff --git a/src/main.rs b/src/main.rs index 42ddf41..4af31cc 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,7 +1,6 @@ use dotenv::dotenv; use teloxide::{prelude::*, respond}; use tg_relay_rs::{ - commands::{Command, answer}, comments::{Comments, init_global_comments}, handler::{Handler, create_handlers}, telemetry::setup_logger, @@ -29,8 +28,7 @@ async fn main() -> color_eyre::Result<()> { let handlers = create_handlers(); - Command::repl(bot.clone(), answer).await; - + // Command::repl(bot.clone(), answer).await; teloxide::repl(bot.clone(), move |bot: Bot, msg: Message| { // clone the handlers vector into the closure let handlers = handlers.clone();