From b685bbd38f7bcea03cf02198fc02c1d89ca45cbf Mon Sep 17 00:00:00 2001 From: Isaac Date: Wed, 3 Mar 2021 20:21:27 +0000 Subject: [PATCH] update --- .eslintrc.js | 17 ----------------- src/database/index.js | 2 +- src/listeners/ready.js | 8 ++++---- 3 files changed, 5 insertions(+), 22 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index b835195..0338e65 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,15 +1,8 @@ module.exports = { 'env': { - 'commonjs': true, - 'es6': true, - 'browser': false, 'node': true }, 'extends': 'eslint:recommended', - 'globals': { - 'Atomics': 'readonly', - 'SharedArrayBuffer': 'readonly' - }, 'parserOptions': { 'ecmaVersion': 2021 }, @@ -18,10 +11,6 @@ module.exports = { 'warn', 'tab' ], - 'linebreak-style': [ - 'off', - 'windows' - ], 'quotes': [ 'warn', 'single' @@ -30,11 +19,5 @@ module.exports = { 'error', 'always' ], - 'no-control-regex': [ - 'off' - ], - 'no-console': [ - 'off' - ] } }; \ No newline at end of file diff --git a/src/database/index.js b/src/database/index.js index 04ec71c..52e830b 100644 --- a/src/database/index.js +++ b/src/database/index.js @@ -41,7 +41,7 @@ module.exports = async (log) => { sequelize = new Sequelize({ dialect: types[type].dialect, storage: path('./user/database.sqlite'), - logging: log.debug + logging: text => log.debug(text) }); } else { log.info(`Connecting to ${types[type].name} database...`); diff --git a/src/listeners/ready.js b/src/listeners/ready.js index 54afa1d..1e2bdb4 100644 --- a/src/listeners/ready.js +++ b/src/listeners/ready.js @@ -8,16 +8,16 @@ module.exports = { /** * OH NO, TELEMETRY!? - * Relax, it just counts how many people are using DiscordTickets by storing the bot's ID. - * You can see the source here: + * Relax, it just counts how many people are using DiscordTickets. + * You can see the source here: https://github.com/discord-tickets/stats */ if (client.config.super_secret_setting) { // you can disable it if you really want const fetch = require('node-fetch'); - fetch(`https://telemetry.discordtickets.app/?id=${client.user.id}`, { + fetch(`https://telemetry.discordtickets.app/client?id=${client.user.id}`, { method: 'post', }).catch(e => { // fail quietly, it doesn't really matter if it didn't work - log.debug('Warning: failed to post to telemetry.discordtickets.app'); + log.debug('Warning: failed to post to telemetry.discordtickets.app/client'); log.debug(e); }); }