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})