lessen some user’s retardation a little

This commit is contained in:
kageru 2018-07-16 10:39:48 +02:00
parent 8b170ddc5a
commit 91e9ebbb28
Signed by untrusted user: kageru
GPG Key ID: 4289AC14736877D7

View File

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