Use minutes as the default unit for timed close

Before, doing !close 30 would close the thread in 30 seconds. Now it
will be closed in 30 minutes.
master
Dragory 2018-04-21 16:44:03 +03:00
parent a839372cfe
commit e5588d7c83
1 changed files with 2 additions and 2 deletions

View File

@ -222,8 +222,8 @@ function convertDelayStringToMS(str) {
while (str !== '' && (match = str.match(regex)) !== null) {
if (match[2] === 'd') ms += match[1] * 1000 * 60 * 60 * 24;
else if (match[2] === 'h') ms += match[1] * 1000 * 60 * 60;
else if (match[2] === 'm') ms += match[1] * 1000 * 60;
else if (match[2] === 's' || ! match[2]) ms += match[1] * 1000;
else if (match[2] === 's') ms += match[1] * 1000;
else if (match[2] === 'm' || ! match[2]) ms += match[1] * 1000 * 60;
str = str.slice(match[0].length);
}