-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclient.js
51 lines (47 loc) · 970 Bytes
/
client.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
const { MessageEmbed, Collection } = require("discord.js");
const config = {
prefix: "dev!",
embed: {
colors: {
Default: "#00FF7F",
Youtube: "#FF0000"
},
footer: { text: "Created by !¿֍𝓪𝓷𝓶𝓸𝓽𝓲֍?¡#0163" },
},
blacklist: {
user: []
},
auth: {
discord: "TOKEN"
}
};
const cache = {
startDate: Date.now
};
const func = {
reply: (data, message) => {
let res;
if (data !== null && typeof data === "object") {
res = data;
res.allowedMentions?.repliedUser ?? false;
} else {
res = {
content: data,
allowedMentions: { repliedUser: false }
};
};
return message.reply(res);
},
embed: (color = config.embed.colors.Default) => {
const embed = new MessageEmbed()
.setFooter(config.embed.footer)
.setColor(color)
.setTimestamp();
return embed;
}
};
module.exports = {
config: config,
cache: cache,
func: func
};