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 = {
'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'
]
}
};

View File

@ -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...`);

View File

@ -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: <https://repl.it/@eartharoid/DiscordTickets-Telemetry#index.js>
* 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);
});
}