From d972eb77266dedf9cdfae2189dd586699e4ca080 Mon Sep 17 00:00:00 2001
From: haruyuumei <luzivotto.erick@gmail.com>
Date: Tue, 2 Apr 2024 20:11:01 -0300
Subject: [PATCH] Thisguy working partially

not fully implemented reply to the reply
---
 src/custom/thisguy.rs | 38 ++------------------------------------
 1 file changed, 2 insertions(+), 36 deletions(-)

diff --git a/src/custom/thisguy.rs b/src/custom/thisguy.rs
index 2a8e445..b539b3e 100644
--- a/src/custom/thisguy.rs
+++ b/src/custom/thisguy.rs
@@ -6,12 +6,12 @@ use rand::Rng;
 use std::sync::Arc;
 use tokio::time::{sleep, Duration};
 
-
 //using the env file to get bot prefix
 use std::env;
 use dotenv::dotenv;
 
 //bot function
+
 async fn tsg(params: ExecBodyParams) {
 
     //Defining a var prefix to the prefix on the env file
@@ -56,7 +56,7 @@ async fn tsg(params: ExecBodyParams) {
             .await;
         sleep(Duration::from_secs_f64(0.5)).await;
     }else {
-        println!("didn't type the proper command");
+        //println!("didn't type the proper command");
     }
 }
 
@@ -91,37 +91,3 @@ async fn test(params: ExecBodyParams) {
         Some(&params.msg),
     );
 }
-
-
-// just testing this area, not working atm
-async fn replyer(params: ExecBodyParams)
-{
-    /*
-        check if the command message was a reply
-        get reply message parent
-        reply to the parent
-     */
-
-    //let reply_parent_message;
-    let reply_message: &String = &params.msg.message_text;
-    let my_reply:String = String::from("test");
-
-    //println!("{:?}",reply_parent_message);
-    println!("{}",reply_message);
-
-    botlog::debug(
-        "Oh god I love anime Girls!!",
-        Some("modules > thisguy()".to_string()),
-        Some(&params.msg),
-    );
-    let bot = Arc::clone(&params.bot);
-    let botlock = bot.read().await;  
-
-    // uses chat.say_in_reply_to() for the bot controls for messages
-    botlock
-        .botmgrs
-        .chat
-        .say_in_reply_to(&params.msg, my_reply, params.clone())
-        .await;
-    sleep(Duration::from_secs_f64(0.5)).await;
-}
\ No newline at end of file