Compare commits

..

No commits in common. "313b6ecfa9047775f0475eb121772ef493132be9" and "e01cfe472e12a89f2ecb23a00facc115786dac33" have entirely different histories.

View file

@ -1,10 +1,11 @@
//! A module about editing and messing around with user text
//!
use std::collections::HashMap;
use std::os::windows::thread;
use std::string;
use std::sync::Arc;
use rand::{thread_rng, Rng};
use rand::seq::SliceRandom;
use twitch_irc::message::ReplyToMessage;
use crate::core::bot_actions::{actions_util, ExecBodyParams};
use crate::core::botinstance::Channel;
@ -110,8 +111,8 @@ pub async fn init(mgr: Arc<ModulesManager>) {
botlock
.botmgrs
.chat
.say_in_reply(
Channel(params.clone().msg.channel_login().to_string()),
.say_in_reply_to(
&params.msg,
botreply,
params.clone()
).await;
@ -132,8 +133,8 @@ pub async fn init(mgr: Arc<ModulesManager>) {
botlock
.botmgrs
.chat
.say_in_reply(
Channel(params.clone().msg.channel_login().to_string()),
.say_in_reply_to(
&params.msg,
shuffle_word,
params.clone()
).await;
@ -174,8 +175,8 @@ pub async fn init(mgr: Arc<ModulesManager>) {
botlock
.botmgrs
.chat
.say_in_reply(
Channel(params.clone().msg.channel_login().to_string()),
.say_in_reply_to(
&params.msg,
bot_reply,
params.clone()
).await;
@ -192,8 +193,8 @@ pub async fn init(mgr: Arc<ModulesManager>) {
botlock
.botmgrs
.chat
.say_in_reply(
Channel(params.clone().msg.channel_login().to_string()),
.say_in_reply_to(
&params.msg,
String::from("Forsen!"),
params.clone()
).await;
@ -225,8 +226,8 @@ pub async fn init(mgr: Arc<ModulesManager>) {
botlock
.botmgrs
.chat
.say_in_reply(
Channel(params.clone().msg.channel_login().to_string()),
.say_in_reply_to(
&params.msg,
bot_reply.clone(),
params.clone()
).await;