From 91e9ebbb28d7757c1fe13fe6897a40fdca6d85a3 Mon Sep 17 00:00:00 2001 From: kageru Date: Mon, 16 Jul 2018 10:39:48 +0200 Subject: [PATCH] =?UTF-8?q?lessen=20some=20user=E2=80=99s=20retardation=20?= =?UTF-8?q?a=20little?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index a901831..56976a2 100644 --- a/main.go +++ b/main.go @@ -10,7 +10,7 @@ import ( ) var config = readConfig() -var commands []Command +var commands []*Command func main() { dg, err := discordgo.New("Bot " + config.Token) @@ -50,6 +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: "!complain", Type: CommandTypePrefix, DMOnly: true, Function: redirectComplaint}) registerCommand(Command{Trigger: "!beschwerde", Type: CommandTypePrefix, DMOnly: true, Function: redirectComplaint})