summary refs log tree commit diff
path: root/src/system/plugin.rs
diff options
context:
space:
mode:
authorAshelyn Rose <git@ashen.earth>2025-03-01 14:03:56 -0700
committerAshelyn Rose <git@ashen.earth>2025-03-01 14:03:56 -0700
commit89bf5a8b4f85583795b9211eaca485d6fc633389 (patch)
tree18375298e6906f0644b9ed5b4d9c974d8e609cfe /src/system/plugin.rs
parent99e5f7e3ff51aebc6796d1b7cf852367eb35d8d5 (diff)
Refactor logging
Diffstat (limited to 'src/system/plugin.rs')
-rw-r--r--src/system/plugin.rs8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/system/plugin.rs b/src/system/plugin.rs
index c458fd4..d3c6764 100644
--- a/src/system/plugin.rs
+++ b/src/system/plugin.rs
@@ -4,6 +4,8 @@ mod prefixes;
 use async_trait::async_trait;
 
 use twilight_model::{channel::{Channel, Message}, id::{marker::ChannelMarker, Id}};
+
+use super::log::Logger;
 use crate::system::types::{System, Response};
 
 pub use prefixes::ProxyPrefixes;
@@ -11,11 +13,11 @@ pub use autoproxy::Autoproxy;
 
 #[async_trait]
 pub trait SeancePlugin {
-    async fn handle_command(&self, system: &System, message: &Message) -> CommandOutcome;
+    async fn handle_command(&self, logger: &Logger, system: &System, message: &Message) -> CommandOutcome;
 
-    async fn handle_message(&self, system: &System, message: &Message, response: &mut Response);
+    async fn handle_message(&self, logger: &Logger, system: &System, message: &Message, response: &mut Response);
 
-    async fn post_response(&self, system: &System, message: &Message, channel: Id<ChannelMarker>, response: &Response);
+    async fn post_response(&self, logger: &Logger, system: &System, message: &Message, channel: Id<ChannelMarker>, response: &Response);
 }
 
 pub enum CommandOutcome {