From 6c8f59502f3bb0279eae1091f19a7c0bb458a2c7 Mon Sep 17 00:00:00 2001 From: sommerfeld Date: Tue, 23 Apr 2024 15:55:28 +0100 Subject: Add name() to Action trait --- src/actions/command.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/actions/command.rs') diff --git a/src/actions/command.rs b/src/actions/command.rs index 28d951a..a07e825 100644 --- a/src/actions/command.rs +++ b/src/actions/command.rs @@ -36,6 +36,10 @@ impl<'a> CommandAction<'a> { #[async_trait] impl Action<'_> for CommandAction<'_> { + fn name(&self) -> &'static str { + "command" + } + async fn run(&self, params: Option<&MessageParams<'_, '_>>) -> Result<()> { let mut cmd = Command::new(&self.cmd_config.cmd); for arg in self.cmd_config.args.iter() { -- cgit v1.2.3-70-g09d2