forked from Tomato6966/Multiguild-Modmail
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
42 lines (40 loc) · 1.15 KB
/
index.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
const Discord = require("discord.js");
const Enmap = require("enmap");
const config = require("./config.json")
const client = new Discord.Client({
shards: "auto", // 1800+ ,
allowedMentions: {
parse: ["roles", "users"],
repliedUser: false,
},
failIfNotExists: false,
presence: {
activity: {
name: `Dm me for help | m!help`,
type: "PLAYING",
url: "https://twitch.tv/#"
},
status: "online"
},
restTimeOffset: 0,
partials: ["CHANNEL", "MESSAGE", "REACTION"],
intents: [
Discord.Intents.FLAGS.GUILDS,
Discord.Intents.FLAGS.GUILD_MEMBERS,
Discord.Intents.FLAGS.GUILD_MESSAGES,
Discord.Intents.FLAGS.DIRECT_MESSAGES,
]
});
client.modmailDb = new Enmap({
name: "Modmail-Database",
//dataDir: "./databases/modmail" //create the folder(s)
});
client.settings = new Enmap({
name: "Settings-Database",
//dataDir: "./databases/settings" //create the folder(s)
});
client.login(config.token)
client.on("ready", () => {
console.log(`${client.user.tag} is now online!`);
})
require("./modmail")(client);