Repository navigation
Expand file tree
/
Copy pathindex.js
More file actions
79 lines (75 loc) · 2.04 KB
/
Copy pathindex.js
File metadata and controls
79 lines (75 loc) · 2.04 KB
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
const { ForgeClient } = require("forgescript")
const { ForgeDB } = require("forgedb")
const { token } = require("./config.json")
const client = new ForgeClient({
extensions: [
new ForgeDB()
],
intents: [
"Guilds",
"GuildMembers",
"GuildModeration",
"GuildEmojisAndStickers",
"GuildIntegrations",
"GuildWebhooks",
"GuildInvites",
"GuildVoiceStates",
"GuildPresences",
"GuildMessages",
"GuildMessageReactions",
"GuildMessageTyping",
"DirectMessages",
"DirectMessageReactions",
"DirectMessageTyping",
"MessageContent",
"GuildScheduledEvents",
"AutoModerationConfiguration",
"AutoModerationExecution" // This intent is privileged, must be enabled in https://discord.com/developers/applications
],
events: [
"channelCreate",
"channelDelete",
"channelUpdate",
"debug",
"emojiCreate",
"emojiDelete",
"emojiUpdate",
"error",
"guildAuditLogEntryCreate",
"guildCreate",
"guildDelete",
"guildMemberAdd",
"guildMemberRemove",
"guildMemberUpdate",
"guildUpdate",
"interactionCreate",
"inviteCreate",
"inviteDelete",
"messageCreate",
"messageDelete",
"messageReactionAdd",
"messageReactionRemove",
"messageUpdate",
"ready",
"roleCreate",
"roleDelete",
"roleUpdate",
"shardDisconnect",
"shardError",
"shardReady",
"shardReconnecting",
"shardResume",
"userUpdate",
"voiceStateUpdate"
], // Events our bot will act on
prefixes: [
"!",
"?"
], // The prefixes to use for our bot!
useInviteSystem: false // Set to `true` if you want to use invite system.
})
client.commands.load("./commands") // Load commands from a folder.
console.log("Commands has been loaded successfully!") // Logs to console.
client.applicationCommands.load("./slashes") // Load slash commands from a folder.
console.log("Slash commands has been loaded successfully!") // Logs to console.
client.login(token) // You can get your bot token on https://discord.com/developers/applications