aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/main.rs b/src/main.rs
index 8c83fab..d71ee0a 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -74,9 +74,10 @@ fn run() -> Result<()> {
.case_insensitivity(true)
)
.before(|_ctx, message, cmd| {
- debug!("got command {} from user '{}' ({})", cmd, message.author.name, message.author.id);
-
- message.guild_id().map_or(false, |x| x.0 == *TARGET_GUILD)
+ let result = message.guild_id().map_or(false, |x| x.0 == *TARGET_GUILD);
+ debug!("got command {} from user '{}' ({}). accept: {}", cmd, message.author.name, message.author.id, result);
+
+ result
})
.after(|_ctx, _msg, _cmd, err| {
match err {