mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2025-09-02 00:31:27 +03:00
update
This commit is contained in:
@@ -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);
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user