-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathindex_other_tasks.js
51 lines (40 loc) · 1.75 KB
/
index_other_tasks.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
//IMPORTING NPM PACKAGES
const Discord = require('discord.js');
const colors = require("colors");
const Enmap = require("enmap");
const config = require("./config.json")
const client = new Discord.Client({
allowedMentions: {
parse: [ "roles", "users" ],
repliedUser: false,
},
partials: ['MESSAGE', 'CHANNEL', 'REACTION'],
intents: [
Discord.Intents.FLAGS.GUILDS,
Discord.Intents.FLAGS.GUILD_MEMBERS,
Discord.Intents.FLAGS.GUILD_VOICE_STATES,
Discord.Intents.FLAGS.GUILD_PRESENCES,
Discord.Intents.FLAGS.GUILD_MESSAGES,
Discord.Intents.FLAGS.DIRECT_MESSAGES,
]
});
client.on("warn", e => console.log(e.stack ? String(e.stack).grey : String(e).grey))
client.on("debug", e => console.log(e.stack ? String(e.stack).grey : String(e).grey))
client.on("rateLimit", e => console.log(JSON.stringify(e).grey))
client.config = require("./config.json");
client.ticketdata = new Enmap({name: "ticketdata",dataDir: "./dbs/others"});
require("./modules/events/guildMemberAdd")(client)
require("./modules/events/guildMemberUpdate")(client)
require("./modules/events/ready")(client)
require("./modules/events/threadCreate")(client)
require("./modules/others/feedback_system")(client)
require("./modules/others/verifysystem")(client)
require("./modules/others/guess_the_number")(client)
require("./modules/others/status_role_system")(client)
require("./modules/others/ticket_updatemsg")(client)
require("./modules/others/features")(client)
require("./modules/others/autodelete")(client)
require("./modules/others/validcode")(client)
client.on("messageCreate",(message)=>{require("./modules/others/suggest")(client, message)});
client.on("messageCreate",(message)=>{require("./modules/others/chatbot")(client, message)});
client.login(client.config.token);