Compare commits

...

3 commits

Author SHA1 Message Date
313b6ecfa9 Updating textmods to say_in_reply
All checks were successful
ci/woodpecker/pr/cargo-checks Pipeline was successful
2024-04-09 16:50:07 -03:00
3bfe2c3776 Merge branch 'TextMods-Module' of ssh://git.flake.sh:2222/modulatingforce/forcebot_rs into TextMods-Module 2024-04-09 16:46:57 -03:00
94ea145535 changes to textmods to merge 2024-04-09 16:32:10 -03:00

View file

@ -1,11 +1,10 @@
//! 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;
@ -111,11 +110,11 @@ pub async fn init(mgr: Arc<ModulesManager>) {
botlock
.botmgrs
.chat
.say_in_reply_to(
&params.msg,
botreply,
params.clone()
).await;
.say_in_reply(
Channel(params.clone().msg.channel_login().to_string()),
botreply,
params.clone()
).await;
}
else {
@ -133,10 +132,10 @@ pub async fn init(mgr: Arc<ModulesManager>) {
botlock
.botmgrs
.chat
.say_in_reply_to(
&params.msg,
.say_in_reply(
Channel(params.clone().msg.channel_login().to_string()),
shuffle_word,
params.clone()
params.clone()
).await;
}
@ -175,10 +174,10 @@ pub async fn init(mgr: Arc<ModulesManager>) {
botlock
.botmgrs
.chat
.say_in_reply_to(
&params.msg,
.say_in_reply(
Channel(params.clone().msg.channel_login().to_string()),
bot_reply,
params.clone()
params.clone()
).await;
}
@ -193,8 +192,8 @@ pub async fn init(mgr: Arc<ModulesManager>) {
botlock
.botmgrs
.chat
.say_in_reply_to(
&params.msg,
.say_in_reply(
Channel(params.clone().msg.channel_login().to_string()),
String::from("Forsen!"),
params.clone()
).await;
@ -226,8 +225,8 @@ pub async fn init(mgr: Arc<ModulesManager>) {
botlock
.botmgrs
.chat
.say_in_reply_to(
&params.msg,
.say_in_reply(
Channel(params.clone().msg.channel_login().to_string()),
bot_reply.clone(),
params.clone()
).await;