-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
30 lines (23 loc) · 802 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
const { Client, Collection, EmbedBuilder } = require("discord.js");
const { DisTube } = require("distube");
const { SpotifyPlugin } = require("@distube/spotify");
const { SoundCloudPlugin } = require("@distube/soundcloud");
require("dotenv").config();
// Env Defines //
databaseuri = process.env.DatabaseURL;
token = process.env.TOKEN;
const client = new Client({
intents: 32767,
presence: {
activities: [{ name: "/help", type: "Watching" }],
status: "dnd",
},
});
const { loadEvents } = require("./Handlers/eventHandler");
client.events = new Collection();
client.subCommands = new Collection();
client.commands = new Collection();
const { connect } = require("mongoose");
connect(databaseuri, {}).then(() => console.log("Database ✅"));
loadEvents(client);
client.login(token);