changes to textmods to merge

This commit is contained in:
haruyuumei 2024-04-09 16:32:10 -03:00
parent 4c6bc2e84e
commit 94ea145535

View file

@ -1,8 +1,6 @@
//! 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;
@ -111,8 +109,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()),
botreply,
params.clone()
).await;
@ -133,8 +131,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()),
shuffle_word,
params.clone()
).await;
@ -175,8 +173,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,
params.clone()
).await;
@ -193,8 +191,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 +224,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;