From 55aeaa7fc15c124ec2d0923aa5a547125bda0452 Mon Sep 17 00:00:00 2001 From: haruyuumei Date: Tue, 9 Apr 2024 16:22:11 -0300 Subject: [PATCH] changed reply message on thisguy --- src/custom/thisguy.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/custom/thisguy.rs b/src/custom/thisguy.rs index 052f601..8616580 100644 --- a/src/custom/thisguy.rs +++ b/src/custom/thisguy.rs @@ -4,6 +4,7 @@ use crate::core::botlog; use crate::core::botmodules::{BotActionTrait, BotCommand, BotModule, ModulesManager}; use crate::core::identity::UserRole::*; use rand::Rng; +use twitch_irc::message::ReplyToMessage; use std::sync::Arc; use tokio::time::{sleep, Duration}; const OF_CMD_CHANNEL:Channel = Channel(String::new()); @@ -34,7 +35,11 @@ async fn tsg(params: ExecBodyParams) { botlock .botmgrs .chat - .say_in_reply_to(¶ms.msg, a, params.clone()) + .say_in_reply( + Channel(params.clone().msg.channel_login().to_string()), + a, + params.clone() + ) .await; sleep(Duration::from_secs_f64(0.5)).await; }