-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
30 lines (23 loc) · 734 Bytes
/
index.js
File metadata and controls
30 lines (23 loc) · 734 Bytes
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 { token, prefix } = require("./config");
const { Client, Collection } = require("discord.js");
const { VultrexDB } = require('vultrex.db');
const client = new Client({
disableMentions: "everyone"
});
const db = new VultrexDB({
provider: "sqlite",
table: "main",
fileName: "main"
});
db.connect().then(async () => {
client.prefix = prefix;
client.db = db;
client.commands = new Collection();
client.aliases = new Collection();
client.limits = new Map();
client.snipes = new Map();
client.blacklist = db.get("blacklist", []);
require("./structures/command").run(client);
require("./structures/events").run(client);
client.login(token);
})