renesansz / discord-greeter-bot

My greeter bot for Discord
MIT License
49 stars 38 forks source link

Bot not responding to commands #76

Closed tomrsae closed 6 years ago

tomrsae commented 6 years ago

The server I'm trying to implement the bot on already has a bot using '!' as a "caller". I've tried changing it to "-" and "^" but nothing is working? The bot is Online on the server and I get no errors when launching it using node bot.js

bot.on('message', function (user, userID, channelID, message, evt) {
     if (message.substring(0, 1) == '^') {
         var args = message.substring(1).split(' ');
         var cmd = args[0];

         args = args.splice(1);
         switch(cmd) {
             case 'ping':
                 bot.sendMessage({
                     to: channelID,
                     message: 'Pong!'
                 });
             break;
          }
      }
 });

I get no response whatsoever

tomrsae commented 6 years ago

SOLUTION: Turned out the server was configured so that regular users couldn't send messages in any channel. Naturally, the solution was to give the bot a role so that it could actually send messages...

Can't believe I made this mistake..