Removed unnecessary logs

This commit is contained in:
entar 2025-05-21 06:21:47 +07:00
parent 16b56302ba
commit 24fd053710
2 changed files with 1 additions and 3 deletions

View File

@ -5,7 +5,6 @@ module.exports = [
{ {
name: "ping", name: "ping",
run: (ctx, args) => { run: (ctx, args) => {
console.log(ctx, args)
ctx.reply(`Pong! ${args}`) ctx.reply(`Pong! ${args}`)
}, },
hide: false, hide: false,
@ -25,7 +24,6 @@ module.exports = [
return // Go to next command if this one should show up return // Go to next command if this one should show up
} }
const field = {name: command.name, value: `Description: ${command.description || "None"}\nArguments: ${command.arguments || "None"}`} const field = {name: command.name, value: `Description: ${command.description || "None"}\nArguments: ${command.arguments || "None"}`}
console.log(field)
embed.addFields(field) embed.addFields(field)
}) })
}) })

View File

@ -84,7 +84,6 @@ client.on("messageCreate", (message) => {
// Parsing // Parsing
args.forEach((arg, index) => { args.forEach((arg, index) => {
console.log(index)
if (arg.startsWith("<@")) { if (arg.startsWith("<@")) {
// User, lets get the id // User, lets get the id
const id = arg.slice(2, arg.length - 1) const id = arg.slice(2, arg.length - 1)
@ -118,6 +117,7 @@ client.on("messageCreate", (message) => {
realCommand.run(message, args) realCommand.run(message, args)
}) })
// After getting the command list we can export it
module.exports.commands = commands module.exports.commands = commands
// Time to login // Time to login