-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
21 lines (16 loc) · 1.01 KB
/
index.js
File metadata and controls
21 lines (16 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
const { Client, Intents, Collection } = require("discord.js");
const { BotToken, OwnerID, BotActivity } = require('./Database/Information.json');
client = new Client( { intents: [ Intents.FLAGS.GUILDS, Intents.FLAGS.GUILD_MEMBERS, Intents.FLAGS.GUILD_MESSAGE_REACTIONS, Intents.FLAGS.GUILD_EMOJIS_AND_STICKERS, Intents.FLAGS.GUILD_BANS, Intents.FLAGS.GUILD_MESSAGES ] })
const { AutoPoster } = require('topgg-autoposter');
const ap = AutoPoster('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6Ijg0NjAyOTkwOTcyNjA2ODc2NyIsImJvdCI6dHJ1ZSwiaWF0IjoxNjUzNDE1OTA5fQ.WyVWrLXXpTzXYxGrPHtZ0bsaJ4OIdQrGr8sWXeZKGDY', client)
client.slash_commands = new Collection();
client.contextMenus = new Collection();
client.buttonCommands = new Collection();
client.aliases = new Collection();
client.settings = { OwnerID }
for(let handler of ["slash_command", "event"]) require(`./handlers/${handler}`)(client);
client.login(BotToken)
client.on('ready', () => {
client.user.setActivity(BotActivity, {type: "PLAYING"});
});
ap.on('posted', () => {})