clippy cleanup

clippy cleanup
This commit is contained in:
ModulatingForce 2024-03-23 20:29:18 -04:00
commit e4a44894d7
4 changed files with 21 additions and 42 deletions

View file

@ -272,17 +272,7 @@ impl BotInstance {
Some(msg),
);
// /*
// [ ] Here, msg is taken, and message_text is split so we can pull the first argument
// */
// let inpt = msg
// .message_text
// .split(' ')
// .next()
// .expect("ERROR during BotCommand");
/*
[ ] What we should do instead is :
1. Check if the message is related to a Reply (so we know how many arguments we should skip)
@ -295,14 +285,11 @@ impl BotInstance {
let arg1 = msgiter.next();
let arg2 = msgiter.next();
let reply = if let Some(replyidout) = msg.source.tags.0.get("reply-thread-parent-msg-id") {
if let Some(replyid) = replyidout {
// println!("Detected Reply : {}",replyid);
Some(replyid)
} else { None }
let reply = if let Some(Some(replyid)) = msg.source.tags.0.get("reply-thread-parent-msg-id") {
Some(replyid)
} else { None }
;
;
let inpt = match reply {