-
-
Save net-tech/4eb969f815ce0ea3bcd77c109cfee502 to your computer and use it in GitHub Desktop.
Excerpt of index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const client = new Discord.Client({ | |
intents: [ | |
Intents.FLAGS.GUILDS, | |
Intents.FLAGS.GUILD_MEMBERS, | |
Intents.FLAGS.GUILD_MESSAGES, | |
Discord.Intents.FLAGS.GUILD_BANS, | |
Intents.FLAGS.GUILD_MESSAGE_REACTIONS, | |
Discord.Intents.FLAGS.GUILD_PRESENCES, | |
] | |
}); | |
//[...] | |
client.on('ready', async () => { | |
log.success(`Ready, node ${process.version} - ${client.user.tag}`, "STARTUP") | |
new WOKCommands({ | |
client, | |
commandsDir: path.join(__dirname, 'commands'), | |
events: { | |
dir: path.join(__dirname, "events"), | |
}, | |
delErrMsgCooldown: -1, | |
ignoreBots: true, | |
debug: debugLog, | |
showWarns: debugLog, | |
botOwners: ['461862173044375572'], | |
dbOptions: { | |
keepAlive: true, | |
useNewUrlParser: true, | |
useUnifiedTopology: true, | |
useFindAndModify: false, | |
}, | |
mongoUri: process.env.MONGO_URI, | |
validations: { | |
syntax: path.join(__dirname, "validations", "syntax"), | |
runtime: path.join(__dirname, "validations", "runtime"), | |
}, | |
testServers: ['828962734938652752'], | |
cooldownConfig: { | |
errorMessage: "⏱️ Cooldown: {TIME}.", | |
botOwnersBypass: true, | |
dbRequired: 300, | |
}, | |
disabledDefaultCommands: [ | |
"channelcommand", | |
"customcommand", | |
"delcustomcommand", | |
"requiredpermissions", | |
"requiredroles", | |
"togglecommand", | |
], | |
}) | |
log.success(`Booted up successfully in ${stopwatch.stop().toString()}`, "STARTUP") | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment