rai if you are reading this im getting you a monster

This commit is contained in:
DeSqBlocki
2026-08-14 22:54:03 +02:00
parent 912b1b6ceb
commit c76680293e
34 changed files with 1478 additions and 3338 deletions
+33 -71
View File
@@ -1,71 +1,33 @@
const DiscordJS = require('discord.js')
const WOKCommands = require('wokcommands')
const path = require('path')
require('dotenv').config();
const { Intents } = DiscordJS
const client = new DiscordJS.Client({
intents: [
Intents.FLAGS.GUILDS,
Intents.FLAGS.GUILD_MESSAGES,
Intents.FLAGS.GUILD_MESSAGE_REACTIONS,
],
})
/*
To-Do:
- animal spawn time with weather condition check
- lodestone lookup????
- change database structure: duties in one, filter by type (e.g. Dungeon, Raid. etc); classes in one, filter by type (e.g. Tank, Healer, etc)
*/
client.on('ready', async () => {
const dbOptions = {
keepAlive: true
}
new WOKCommands(client, {
commandsDir: path.join(__dirname, 'commands'),
featuresDir: path.join(__dirname, 'features'),
messagesPath: '',
typeScript: false,
showWarns: true,
delErrMsgCooldown: -1,
defaultLangauge: 'english',
ignoreBots: false,
ephemeral: false,
dbOptions: {
// These are the default options
keepAlive: true
},
testServers: ['848610258306072576'],
botOwners: ['140508899064283136'],
disabledDefaultCommands: [
// 'help',
// 'command',
// 'language',
// 'prefix',
// 'requiredrole',
// 'channelonly'
],
mongoUri: process.env.URI,
debug: false
})
.setDefaultPrefix('$')
// Used for the color of embeds sent by WOKCommands
.setColor(0xff0000)
})
client.login(process.env.TOKEN)
/*
SUB_COMMAND 1
SUB_COMMAND_GROUP 2
STRING 3
INTEGER 4 Any integer between -2^53 and 2^53
BOOLEAN 5
USER 6
CHANNEL 7 Includes all channel types + categories
ROLE 8
MENTIONABLE 9 Includes users and roles
NUMBER 10 Any double between -2^53 and 2^53
ATTACHMENT 11 attachment object
*/
const { Client, GatewayIntentBits, Collection, Partials } = require('discord.js')
const { MongoClient } = require('mongodb')
require('dotenv').config()
const mClient = new MongoClient(process.env.M_URI)
exports.mClient = mClient;
const fs = require('node:fs')
const client = new Client({
intents: [
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildMembers,
GatewayIntentBits.GuildMessages,
GatewayIntentBits.GuildPresences,
GatewayIntentBits.GuildMessageReactions,
GatewayIntentBits.GuildVoiceStates,
GatewayIntentBits.DirectMessages,
GatewayIntentBits.MessageContent,
],
partials: [Partials.Channel, Partials.Message, Partials.User, Partials.GuildMember, Partials.Reaction]
});
exports.client = client
client.commands = new Collection() // slash commands collection
client.legacyCommands = new Collection() // legacy commands collection
client.aliases = new Collection() // list of command aliases
client.buttons = new Collection() // list of buttons
client.selectMenus = new Collection() // list of selectMenus
fs.readdirSync('./handlers').forEach((handler) => {
require(`./handlers/${handler}`)(client)
});
client.login(process.env.D_TOKEN)