lorencerri / discord-bot-template

A basic TypeScript starter template for Discord bots built on @sapphiredev/framework
MIT License
33 stars 10 forks source link

new commands #22

Closed Celllnside closed 2 years ago

Celllnside commented 3 years ago

i tried making a new command but after i made it the bot says nothing back the pre made commands work though here is the code for the command

const { Command } = require('discord-akairo');

class VampCommand extends Command { constructor() { super('who is vamp', { aliases: ['who is vamp'] }); }

async exec(message) {
    return message.channel.send('a woman')
}

}

module.exports = VampCommand;

it does nothing image

loom4k commented 3 years ago

Hello, this answer might be a bit late but I would never recommend having a command name with spaces. This can create a lot of confusion with the arguments. Try replacing the spaces with - instead maybe?

lorencerri commented 2 years ago

The template now uses @sapphiredev/framework