mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-18 15:45:03 +00:00
Allow overriding default unit for delay strings; use seconds by default for slowmodes
This commit is contained in:
parent
7a9fc177f0
commit
c1d3ed6815
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