Custom this
BotCommand #48
1 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
modulatingforce marked this conversation as resolved
|
||||
.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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue
We're getting an error here in ci/cd
Recommend this be adjusted to