forked from Minecraft/canopeas
Change rate to silently ignore (#6)
Change rate to silently ignore Signed-off-by: Etzelia <etzelia@hotmail.com> Reviewed-on: https://git.etztech.xyz/Etzelia/sedbot/pulls/6ban
parent
7d6b11ee2f
commit
66a418261e
|
@ -24,7 +24,7 @@ func init() {
|
|||
},
|
||||
run: func(cmd commandInit) (string, error) {
|
||||
if !memeRateLimit.Try() {
|
||||
return "Woah, slow down!", nil
|
||||
return "", nil
|
||||
}
|
||||
|
||||
req, err := http.NewRequest(http.MethodGet, dadJokeAPI, nil)
|
||||
|
|
|
@ -17,10 +17,6 @@ func init() {
|
|||
return true
|
||||
},
|
||||
run: func(cmd commandInit) (string, error) {
|
||||
if !memeRateLimit.Try() {
|
||||
return "Woah, slow down!", nil
|
||||
}
|
||||
|
||||
args := strings.Fields(cmd.message.Content)
|
||||
if len(args) < 2 {
|
||||
return "You must give this command a Minecraft username", nil
|
||||
|
|
|
@ -9,7 +9,7 @@ func init() {
|
|||
},
|
||||
run: func(cmd commandInit) (string, error) {
|
||||
if !memeRateLimit.Try() {
|
||||
return "Woah, slow down!", nil
|
||||
return "", nil
|
||||
}
|
||||
|
||||
sendTyping(cmd.session, cmd.message.ChannelID)
|
||||
|
|
|
@ -14,7 +14,7 @@ func init() {
|
|||
},
|
||||
run: func(cmd commandInit) (string, error) {
|
||||
if !memeRateLimit.Try() {
|
||||
return "Woah, slow down!", nil
|
||||
return "", nil
|
||||
}
|
||||
|
||||
fields := strings.Fields(cmd.message.Content)
|
||||
|
|
Loading…
Reference in New Issue