forked from kageru/discord-selphybot
update nh command and changelog
This commit is contained in:
parent
91e9ebbb28
commit
36e03a1d2e
|
@ -8,6 +8,7 @@ Updates are listed in reverse chronological order.
|
||||||
- added more misc commands
|
- added more misc commands
|
||||||
- added feedback to !complain (used to work but was forgotten when refactoring)
|
- 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
|
- use global array of pointers to commands to allow easier modification and avoid unnecessary memcpy
|
||||||
|
- lessen the retardation
|
||||||
|
|
||||||
### 1.1
|
### 1.1
|
||||||
- cooldowns are now stored per-user, not globally, and no longer apply in DMs
|
- cooldowns are now stored per-user, not globally, and no longer apply in DMs
|
||||||
|
|
2
main.go
2
main.go
|
@ -50,7 +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: "(\\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: "!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