From dc902b6daf3f7dc9530c10efee75c4e00b94d495 Mon Sep 17 00:00:00 2001 From: Isaac Date: Tue, 16 Feb 2021 12:28:43 +0000 Subject: [PATCH] Fix --- src/index.js | 2 +- src/modules/database.js | 2 +- user/config.js | 54 ----------------------------------------- 3 files changed, 2 insertions(+), 56 deletions(-) delete mode 100644 user/config.js diff --git a/src/index.js b/src/index.js index c43b4e2..e1e3be7 100644 --- a/src/index.js +++ b/src/index.js @@ -49,7 +49,7 @@ log.report = error => { '<< Issue report >>', 'Please include this information if you ask for help about the following error!', `Support server: ${terminalLink('go.eartharoid.me/discord', 'https://go.eartharoid.me/discord')}`, - `Node.JS version: ${process.versions.node.split('.')}`, + `Node.JS version: ${process.versions.node}`, `Bot version: ${version}`, `Platform: ${process.platform}` ]; diff --git a/src/modules/database.js b/src/modules/database.js index c28b28c..b3fc696 100644 --- a/src/modules/database.js +++ b/src/modules/database.js @@ -21,7 +21,7 @@ module.exports = (log) => { if (!supported.includes(type)) { log.report('Invalid database type'); - throw new Error('DB_TYPE is not valid type'); + throw new Error(`DB_TYPE (${type}) is not a valid type`); } try { diff --git a/user/config.js b/user/config.js deleted file mode 100644 index eb5825d..0000000 --- a/user/config.js +++ /dev/null @@ -1,54 +0,0 @@ -/** - * ############################################################################################### - * ____ _ _____ _ _ - * | _ \ (_) ___ ___ ___ _ __ __| | |_ _| (_) ___ | | __ ___ | |_ ___ - * | | | | | | / __| / __| / _ \ | '__| / _` | | | | | / __| | |/ / / _ \ | __| / __| - * | |_| | | | \__ \ | (__ | (_) | | | | (_| | | | | | | (__ | < | __/ | |_ \__ \ - * |____/ |_| |___/ \___| \___/ |_| \__,_| |_| |_| \___| |_|\_\ \___| \__| |___/ - * - * --------------------- - * Quick Start - * --------------------- - * - * > For detailed instructions, visit the documentation: https://eartharoid.github.io/discordtickets - * - * --------------------- - * Support - * --------------------- - * - * > Discord support server: https://go.eartharoid.me/discord - * > Wiki: https://eartharoid.github.io/discordtickets - * - * ############################################################################################### - */ - -module.exports = { - portal: { - enabled: true, - host: 'https://tickets.eartharoid.me' - }, - presences: [ - { - activity: '%snew | %shelp', - type: 'PLAYING' - }, - { - activity: 'with tickets | %shelp', - type: 'PLAYING' - }, - { - activity: 'for new tickets | %shelp', - type: 'WATCHING' - } - ], - defaults: { - prefix: '-', - colour: '#009999', - }, - logs: { - enabled: true, - keep_for: 30 - }, - debug: false, - update_notice: true, -}; \ No newline at end of file