From c8fc58287aba8f5e2bfe2b4c84fb7d5aa8e2f8eb Mon Sep 17 00:00:00 2001 From: seth Date: Fri, 15 Dec 2023 15:29:41 -0500 Subject: opt-commands: respond when used but not allowed --- src/commands/optional/copypasta.rs | 1 + src/commands/optional/teawiespam.rs | 1 + 2 files changed, 2 insertions(+) (limited to 'src') diff --git a/src/commands/optional/copypasta.rs b/src/commands/optional/copypasta.rs index 6ed4f95..82ce78f 100644 --- a/src/commands/optional/copypasta.rs +++ b/src/commands/optional/copypasta.rs @@ -71,6 +71,7 @@ pub async fn copypasta( if !settings.optional_commands_enabled { debug!("Exited copypasta command in {gid} since it's disabled"); + ctx.say("I'm not allowed to do that here").await?; return Ok(()); } diff --git a/src/commands/optional/teawiespam.rs b/src/commands/optional/teawiespam.rs index fd635ff..2111308 100644 --- a/src/commands/optional/teawiespam.rs +++ b/src/commands/optional/teawiespam.rs @@ -11,6 +11,7 @@ pub async fn teawiespam(ctx: Context<'_>) -> Result<()> { if !settings.optional_commands_enabled { debug!("Not running teawiespam in {gid} since it's disabled"); + ctx.say("I'm not allowed to do that here").await?; return Ok(()); } -- cgit v1.2.3