update nh command and changelog

This commit is contained in:
kageru 2018-07-16 10:58:19 +02:00
parent 91e9ebbb28
commit 36e03a1d2e
Signed by: kageru
GPG Key ID: 4289AC14736877D7
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

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