Moved all handlers into one file

This commit is contained in:
2023-11-21 13:21:40 +01:00
parent 926d1f01e8
commit 5962609e39
15 changed files with 52 additions and 133 deletions

View File

@@ -1,7 +1,8 @@
module.exports = {
name: "logBtnsCmds",
description: "Logs all button and command interactions",
type: "interaction",
type: "event",
event: "interactionCreate",
/** @param { import('discord.js').ChatInputCommandInteraction } interaction */

View File

@@ -1,7 +1,8 @@
module.exports = {
name: 'ur mom',
description: 'ur moms someone',
type: 'message',
type: 'event',
event: 'messageCreate',
/** @param { import('discord.js').Message } message */

View File

@@ -1,7 +1,8 @@
module.exports = {
name: 'conolelog',
description: "console log",
type: 'ready',
type: 'event',
event: 'ready',
/** @param { import('discord.js').Client } client */
execute(client) {

View File

@@ -1,9 +1,10 @@
const { onlineLogChannel, color } = require('../../config/options.json');
const { onlineLogChannel, color } = require('../../../config/options.json');
module.exports = {
name: 'sendonlinemessage',
description: "send an online message",
type: 'ready',
type: 'event',
event: 'ready',
execute(client) {
if (process.env.NODE_ENV !== 'dev') {

View File

@@ -1,9 +1,10 @@
const statuses = require('../../config/statuses.json')
const statuses = require('../../../config/statuses.json')
module.exports = {
name: 'status',
description: 'Sets the status of the bot',
type: 'ready',
type: 'event',
event: 'ready',
/** @param { import('discord.js').Client } client */

View File

@@ -1,10 +1,10 @@
const { userMention, channelMention } = require('discord.js')
const { botLogChannel, color } = require('../../config/options.json')
const { botLogChannel, color } = require('../../../config/options.json')
module.exports = {
name: 'vcJoinLeave',
description: 'Logs when a user joins or leaves a voice channel.',
type: 'other',
type: 'event',
event: 'voiceStateUpdate',
/**