I was making a script using Discord.js-commando to respond to a message, the command to execute this script sent by Streamlabs Chatbot.
Upon sending the message I noticed it did not respond by its own command. Bot name is "Cuartel General", but case in point it didn't even enter the run fn.
Is there a way to make the Bot respond to its own command?
constructor(client) {
super(client, {
name: 'acceso',
group: 'admin',
memberName: 'acceso',
description: 'Generates invite'
});
}
async run(message, args) {
if (message.author.username == "Cuartel General") {
console.log("Bot has access");
} else {
console.log("Usuario is not Bot");
}
}
Any help is appreciated!