3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-18 07:35:02 +00:00

Typing fixes; show last reload time in !about

This commit is contained in:
Dragory 2019-07-22 00:09:45 +03:00
parent d6599c78b7
commit 24afc0a503
26 changed files with 154 additions and 75 deletions

View file

@ -11,7 +11,8 @@ import {
} from "eris";
import url from "url";
import tlds from "tlds";
import emojiRegex from "emoji-regex/es2015/text";
import emojiRegex from "emoji-regex/text";
import * as t from "io-ts";
import fs from "fs";
const fsp = fs.promises;
@ -28,6 +29,10 @@ const delayStringMultipliers = {
s: 1000,
};
export function tNullable(type: t.Mixed) {
return t.union([type, t.undefined, t.null]);
}
/**
* Turns a "delay string" such as "1h30m" to milliseconds
*/