changed reply message on thisguy
All checks were successful
ci/woodpecker/pr/cargo-checks Pipeline was successful

This commit is contained in:
haruyuumei 2024-04-09 16:22:11 -03:00
parent 93768de4dc
commit 55aeaa7fc1

View file

@ -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(&params.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;
}