Update ready.js

This commit is contained in:
Isaac 2021-03-03 11:27:04 +00:00
parent 3ce51e02b1
commit b4135169e7

View File

@ -8,15 +8,16 @@ module.exports = {
/** /**
* OH NO, TELEMETRY!? * OH NO, TELEMETRY!?
* Relax, it just counts how many people are using DiscordTickets. * 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>
*/ */
if (client.config.super_secret_setting) { 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://discordtickets-telemetry.eartharoid.repl.co/?id=${client.user.id}`, { fetch(`https://telemetry.discordtickets.app/?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 discordtickets-telemetry'); log.debug('Warning: failed to post to telemetry.discordtickets.app');
log.debug(e); log.debug(e);
}); });
} }