This commit is contained in:
Raptorox 2026-07-27 23:34:43 +02:00
parent 809d24a70d
commit db4f7f9369
No known key found for this signature in database
GPG key ID: 8B3556FC3ED1F6D8
3 changed files with 38 additions and 1 deletions

17
src/command/say.rs Normal file
View file

@ -0,0 +1,17 @@
#[derive(Default)]
pub struct SayCommand {
message: String
}
impl SayCommand {
pub fn message(mut self, msg: impl Into<String>) -> Self {
self.message = msg.into();
self
}
pub fn build(self) -> super::Command {
let message= self.message;
let s = format!("say {message}");
super::Command(s)
}
}