forked from kageru/discord-selphybot
lessen some user’s retardation a little
This commit is contained in:
parent
8b170ddc5a
commit
91e9ebbb28
3
main.go
3
main.go
|
@ -10,7 +10,7 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
var config = readConfig()
|
var config = readConfig()
|
||||||
var commands []Command
|
var commands []*Command
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
dg, err := discordgo.New("Bot " + config.Token)
|
dg, err := discordgo.New("Bot " + config.Token)
|
||||||
|
@ -50,6 +50,7 @@ func main() {
|
||||||
func addCommands() {
|
func addCommands() {
|
||||||
// Moderation
|
// Moderation
|
||||||
registerCommand(Command{Trigger: "^[^`]*([()|DoOvVcC][-=^']?;|;[-=^']?[()|DoOpPvVcC]|:wink:|😉)[^`]*$", Output: "<@%s> Oboe!", DeleteInput: true, OutputIsReply: true, Type: CommandTypeRegex})
|
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: "!complain", Type: CommandTypePrefix, DMOnly: true, Function: redirectComplaint})
|
||||||
registerCommand(Command{Trigger: "!beschwerde", Type: CommandTypePrefix, DMOnly: true, Function: redirectComplaint})
|
registerCommand(Command{Trigger: "!beschwerde", Type: CommandTypePrefix, DMOnly: true, Function: redirectComplaint})
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user