3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-11 20:55:01 +00:00

Allow overriding default unit for delay strings; use seconds by default for slowmodes

This commit is contained in:
Dragory 2019-04-14 14:05:16 +03:00
parent 7cc4687e87
commit 1ead037b8a
2 changed files with 11 additions and 10 deletions

View file

@ -235,7 +235,7 @@ export class SlowmodePlugin extends ZeppelinPlugin<ISlowmodePluginConfig> {
return;
}
const seconds = Math.ceil(convertDelayStringToMS(args.time) / 1000);
const seconds = Math.ceil(convertDelayStringToMS(args.time, "s") / 1000);
const useNativeSlowmode = this.getConfigForChannel(channel).use_native_slowmode && seconds <= NATIVE_SLOWMODE_LIMIT;
if (useNativeSlowmode) {