From 36e03a1d2e3289b69322391e7ab67cc8a23b6a9f Mon Sep 17 00:00:00 2001 From: kageru Date: Mon, 16 Jul 2018 10:58:19 +0200 Subject: [PATCH] update nh command and changelog --- CHANGELOG.md | 1 + main.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ac45ada..55808e0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ Updates are listed in reverse chronological order. - added more misc commands - added feedback to !complain (used to work but was forgotten when refactoring) - use global array of pointers to commands to allow easier modification and avoid unnecessary memcpy +- lessen the retardation ### 1.1 - cooldowns are now stored per-user, not globally, and no longer apply in DMs diff --git a/main.go b/main.go index 56976a2..f543cd7 100644 --- a/main.go +++ b/main.go @@ -50,7 +50,7 @@ func main() { func addCommands() { // Moderation registerCommand(Command{Trigger: "^[^`]*([()|DoOvVcC][-=^']?;|;[-=^']?[()|DoOpPvVcC]|:wink:|😉)[^`]*$", Output: "<@%s> Oboe!", DeleteInput: true, OutputIsReply: true, Type: CommandTypeRegex}) - registerCommand(Command{Trigger: "(\\s|^)nh([ ?.,]|$)", Output: "<@%s> „nh“ ist kein Wort, du Oboe!", DeleteInput: true, OutputIsReply: true, Type: CommandTypeRegex}) + registerCommand(Command{Trigger: "(\\s|\n|^)nh([ ?.,\n]|$)", Output: "<@%s> „nh“ ist kein Wort, du Oboe!", DeleteInput: true, OutputIsReply: true, Type: CommandTypeRegex}) registerCommand(Command{Trigger: "!complain", Type: CommandTypePrefix, DMOnly: true, Function: redirectComplaint}) registerCommand(Command{Trigger: "!beschwerde", Type: CommandTypePrefix, DMOnly: true, Function: redirectComplaint})