© 2026 Hedgehog Software, LLC
./events/messageCreate.js
const { Events } = require('discord.js'); module.exports = { name: Events.MessageCreate, execute(message) { const prefix = "+"; console.log(")") if (!message.content.startsWith(prefix) || message.author.bot) return; const args = message.content.slice(prefix.length).trim().split(/ +/); console.log("/") const commandName = args.shift().toLowerCase(); const command = message.client.commands.get(commandName) || message.client.commands.find(cmd => cmd.aliases && cmd.aliases.includes(commandName)); console.log("o") if (!command) return; // Check permissions, cooldowns, etc. try { command.execute(message, args); } catch (error) { console.error(error); message.reply('There was an error trying to execute that command!'); } }, };
+ping