-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.js
More file actions
42 lines (35 loc) · 859 Bytes
/
main.js
File metadata and controls
42 lines (35 loc) · 859 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
31
32
33
34
35
36
37
38
39
40
41
42
/*
* Official Disc++ language.
* MIT License.
* Copyright AhmadHrb. All Rights Reserved.
*/
let Discord = require("discord.js");
const client = new Discord.Client({
intents: [],
allowedMentions: { parse: [], repliedUser: false }
});
exports.token = "";
exports.database = "";
exports.init = function () {
this.log("Starting your Bot!");
client.login(exports.token);
}
exports.setToken = function (token) {
this.token = token;
}
exports.db = function (type) {
if (type == "sqlite") {
} else if (type == "mongodb") {
} else if (type == "sql") {
}
this.log("Connected to " + type + " database!");
}
exports.log = function (msg) {
console.log("[LOG] " + msg);
}
exports.err = function (msg) {
console.log("[ERROR] " + msg);
}
client.on("ready",function () {
exports.log("Logged in as " + client.user.tag);
})