Skip to content

Commit

Permalink
feat: top.gg stats poster
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperchupuDev committed Oct 2, 2021
1 parent 06d46bf commit 4691bf7
Show file tree
Hide file tree
Showing 3 changed files with 219 additions and 0 deletions.
6 changes: 6 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
const { Client } = require('discord.js');
const Database = require('better-sqlite3');
// eslint-disable-next-line no-unused-vars
const { DJSPoster } = require('topgg-autoposter');
const client = new Client({
intents: ['GUILDS', 'GUILD_MESSAGES', 'GUILD_MESSAGE_REACTIONS', 'GUILD_MEMBERS'],
partials: ['MESSAGE', 'REACTION', 'USER', 'GUILD_MEMBER'],
Expand All @@ -10,6 +12,10 @@ const client = new Client({
}
});

// TODO: uncomment DJSPoster on release
/*
DJSPoster(process.env.TOPGG_TOKEN, client);
*/
require('dotenv').config();

client.db = new Database('database.sqlite3', { fileMustExist: true });
Expand Down
Loading

0 comments on commit 4691bf7

Please sign in to comment.