From 94ea1455351fbf3b213fef5222e06ea4b3106287 Mon Sep 17 00:00:00 2001 From: haruyuumei Date: Tue, 9 Apr 2024 16:32:10 -0300 Subject: [PATCH] changes to textmods to merge --- src/custom/text_mods.rs | 32 +++++++++++++++----------------- 1 file changed, 15 insertions(+), 17 deletions(-) diff --git a/src/custom/text_mods.rs b/src/custom/text_mods.rs index d0ec2a4..06b8721 100644 --- a/src/custom/text_mods.rs +++ b/src/custom/text_mods.rs @@ -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,11 +109,11 @@ pub async fn init(mgr: Arc) { botlock .botmgrs .chat - .say_in_reply_to( - ¶ms.msg, - botreply, - params.clone() - ).await; + .say_in_reply( + Channel(params.clone().msg.channel_login().to_string()), + botreply, + params.clone() + ).await; } else { @@ -133,10 +131,10 @@ pub async fn init(mgr: Arc) { botlock .botmgrs .chat - .say_in_reply_to( - ¶ms.msg, + .say_in_reply( + Channel(params.clone().msg.channel_login().to_string()), shuffle_word, - params.clone() + params.clone() ).await; } @@ -175,10 +173,10 @@ pub async fn init(mgr: Arc) { botlock .botmgrs .chat - .say_in_reply_to( - ¶ms.msg, + .say_in_reply( + Channel(params.clone().msg.channel_login().to_string()), bot_reply, - params.clone() + params.clone() ).await; } @@ -193,8 +191,8 @@ pub async fn init(mgr: Arc) { botlock .botmgrs .chat - .say_in_reply_to( - ¶ms.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) { botlock .botmgrs .chat - .say_in_reply_to( - ¶ms.msg, + .say_in_reply( + Channel(params.clone().msg.channel_login().to_string()), bot_reply.clone(), params.clone() ).await;