summary refs log tree commit diff
path: root/src/system/plugin/autoproxy.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/system/plugin/autoproxy.rs')
-rw-r--r--src/system/plugin/autoproxy.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/system/plugin/autoproxy.rs b/src/system/plugin/autoproxy.rs
index 24511c4..d9beaf0 100644
--- a/src/system/plugin/autoproxy.rs
+++ b/src/system/plugin/autoproxy.rs
@@ -1,7 +1,7 @@
 use async_trait::async_trait;
 use std::sync::Arc;
 use tokio::sync::Mutex;
-use twilight_model::{channel::{Channel, Message}, id::{marker::ChannelMarker, Id}, util::Timestamp};
+use twilight_model::{channel::Message, id::{marker::ChannelMarker, Id}, util::Timestamp};
 use crate::system::{plugin::PluginCommand, types::{Member, Response, System}};
 use super::SeancePlugin;
 use tokio::time::sleep;
@@ -31,10 +31,10 @@ impl Autoproxy {
 #[async_trait]
 impl<'system> SeancePlugin<'system> for Autoproxy {
     fn get_commands(&self) -> Vec<PluginCommand> {
-        vec![PluginCommand::Long("auto")]
+        vec![PluginCommand::Word("auto")]
     }
 
-    async fn handle_command<'message>(&self, logger: &'system Logger, system: &'system System, message: &'message Message, _command: PluginCommand, args: Vec<&'message str>) {
+    async fn handle_command<'message>(&self, logger: &'system Logger, system: &'system System, _message: &'message Message, _command: PluginCommand, args: Vec<&'message str>) {
         let mut args = args.iter().map(|r| *r);
         let first_word = args.next();
 
@@ -59,7 +59,7 @@ impl<'system> SeancePlugin<'system> for Autoproxy {
         };
     }
 
-    async fn handle_message<'message>(&self, logger: &'system Logger, system: &'system System, message: &'message Message, response: &'message mut Response) {
+    async fn handle_message<'message>(&self, logger: &'system Logger, _system: &'system System, message: &'message Message, response: &'message mut Response) {
         let starting_state = {self.current_state.lock().await.clone()};
         if message.content.starts_with("\\") {
             logger.log_line(None, "Skipping proxy".to_string()).await;
@@ -104,7 +104,7 @@ impl<'system> SeancePlugin<'system> for Autoproxy {
         }
     }
 
-    async fn post_response<'message>(&self, logger: &'system Logger, system: &'system System, message: &'message Message, channel: Id<ChannelMarker>, response: &'message Response) {
+    async fn post_response<'message>(&self, logger: &'system Logger, _system: &'system System, message: &'message Message, _channel: Id<ChannelMarker>, response: &'message Response) {
         match response {
             Response::Proxy { member, content: _ } => {
                 let current_state = {self.current_state.lock().await.clone()};