This commit is contained in:
Isaac 2021-03-03 20:21:27 +00:00
parent d5463a9bc3
commit b685bbd38f
3 changed files with 5 additions and 22 deletions

View File

@ -1,15 +1,8 @@
module.exports = { module.exports = {
'env': { 'env': {
'commonjs': true,
'es6': true,
'browser': false,
'node': true 'node': true
}, },
'extends': 'eslint:recommended', 'extends': 'eslint:recommended',
'globals': {
'Atomics': 'readonly',
'SharedArrayBuffer': 'readonly'
},
'parserOptions': { 'parserOptions': {
'ecmaVersion': 2021 'ecmaVersion': 2021
}, },
@ -18,10 +11,6 @@ module.exports = {
'warn', 'warn',
'tab' 'tab'
], ],
'linebreak-style': [
'off',
'windows'
],
'quotes': [ 'quotes': [
'warn', 'warn',
'single' 'single'
@ -30,11 +19,5 @@ module.exports = {
'error', 'error',
'always' 'always'
], ],
'no-control-regex': [
'off'
],
'no-console': [
'off'
]
} }
}; };

View File

@ -41,7 +41,7 @@ module.exports = async (log) => {
sequelize = new Sequelize({ sequelize = new Sequelize({
dialect: types[type].dialect, dialect: types[type].dialect,
storage: path('./user/database.sqlite'), storage: path('./user/database.sqlite'),
logging: log.debug logging: text => log.debug(text)
}); });
} else { } else {
log.info(`Connecting to ${types[type].name} database...`); log.info(`Connecting to ${types[type].name} database...`);

View File

@ -8,16 +8,16 @@ module.exports = {
/** /**
* OH NO, TELEMETRY!? * OH NO, TELEMETRY!?
* Relax, it just counts how many people are using DiscordTickets by storing the bot's ID. * Relax, it just counts how many people are using DiscordTickets.
* You can see the source here: <https://repl.it/@eartharoid/DiscordTickets-Telemetry#index.js> * 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 if (client.config.super_secret_setting) { // you can disable it if you really want
const fetch = require('node-fetch'); 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', method: 'post',
}).catch(e => { }).catch(e => {
// fail quietly, it doesn't really matter if it didn't work // 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); log.debug(e);
}); });
} }