mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-16 22:21:51 +00:00
Make !slowmode 0 an alias for !slowmode disable
This commit is contained in:
parent
3700a2a4c5
commit
d7079df83d
1 changed files with 1 additions and 1 deletions
|
@ -240,7 +240,7 @@ export class SlowmodePlugin extends ZeppelinPlugin<ISlowmodePluginConfig> {
|
||||||
const useNativeSlowmode = this.getConfigForChannel(channel).use_native_slowmode && seconds <= NATIVE_SLOWMODE_LIMIT;
|
const useNativeSlowmode = this.getConfigForChannel(channel).use_native_slowmode && seconds <= NATIVE_SLOWMODE_LIMIT;
|
||||||
|
|
||||||
if (seconds === 0) {
|
if (seconds === 0) {
|
||||||
return this.disableSlowmodeCmd(msg, { channel: args.channel });
|
return this.disableSlowmodeCmd(msg, { channel });
|
||||||
}
|
}
|
||||||
|
|
||||||
if (seconds > MAX_SLOWMODE) {
|
if (seconds > MAX_SLOWMODE) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue