mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2024-12-23 00:03:09 +02:00
update
This commit is contained in:
parent
d5463a9bc3
commit
b685bbd38f
17
.eslintrc.js
17
.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'
|
||||
]
|
||||
}
|
||||
};
|
@ -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...`);
|
||||
|
@ -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);
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user