-
-
Notifications
You must be signed in to change notification settings - Fork 57
Expand file tree
/
Copy pathindex.js
More file actions
30 lines (20 loc) · 801 Bytes
/
index.js
File metadata and controls
30 lines (20 loc) · 801 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
require("dotenv").config();
require("moment-duration-format");
const economybot = require(`${process.cwd()}/handlers/economybot.js`);
const db = require("enhanced.db"),
TOKEN = process.env.TOKEN,
client = new economybot();
db.options({
clearOnStart: false,
filename: 'ec.sqlite'
})
client.login(TOKEN).catch(console.error);
require(`${process.cwd()}/handlers/eventHandler.js`)(client);
require(`${process.cwd()}/handlers/commandHandler.js`)(client);
client.config = require(`${process.cwd()}/Configuration/config.json`);
client.env = process.env;
client.db = db;
//process.on("unhandledRejection", (err) => {
// console.error(err);
//});
//-----------------------------------------------------The End-----------------------------------------------------