Gravity Command

This commit is contained in:
Daniel Odendahl Jr
2018-09-06 15:08:57 +00:00
parent 8147227818
commit 79a4b0f8c1
6 changed files with 55 additions and 5 deletions
+4
View File
@@ -48,6 +48,10 @@ module.exports = class Util {
return arr;
}
static firstUpperCase(text) {
return `${text.charAt(0).toUpperCase()}${text.slice(1)}`;
}
static base64(text, mode = 'encode') {
if (mode === 'encode') return Buffer.from(text).toString('base64');
if (mode === 'decode') return Buffer.from(text, 'base64').toString('utf8') || null;