summaryrefslogtreecommitdiff
path: root/src/commands/optional
diff options
context:
space:
mode:
authorseth <[email protected]>2023-12-15 15:29:41 -0500
committerseth <[email protected]>2023-12-15 16:41:13 -0500
commitc8fc58287aba8f5e2bfe2b4c84fb7d5aa8e2f8eb (patch)
tree755d77a64527e885dceff73479f8ece81dde8e2f /src/commands/optional
parent8d22f09089b13d013cf94526c205f374bdf873c3 (diff)
opt-commands: respond when used but not allowed
Diffstat (limited to 'src/commands/optional')
-rw-r--r--src/commands/optional/copypasta.rs1
-rw-r--r--src/commands/optional/teawiespam.rs1
2 files changed, 2 insertions, 0 deletions
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(());
}