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:
parent
7cc4687e87
commit
1ead037b8a
2 changed files with 11 additions and 10 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue