Renamed commands/Command to plugin/Plugin.

This commit is contained in:
Micheal Smith
2025-11-14 07:19:28 -06:00
parent 70de039610
commit 30e2d9a448
4 changed files with 24 additions and 24 deletions

18
src/plugin.rs Normal file
View File

@@ -0,0 +1,18 @@
use std::fmt::Display;
use serde::{Deserialize, Serialize};
#[derive(Debug, Deserialize, Serialize)]
pub enum Plugin {
SendMessage { channel: String, message: String },
}
impl Display for Plugin {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
Self::SendMessage { channel, message } => {
write!(f, "[{channel}]: {message}")
}
}
}
}