So been battling this for a bit and trying to learn some JS and hit a wall, we’re trying to create a mIRC style !slap command but for some reason the bot quits randomizing. Any help for what I’m doing wrong here?

Since var randomSlap = slapReasons[Math.floor(Math.random()*slapReasons.length)]; is outside the command callback, it will only be loaded once on startup, try placing it right before the line that sends the message to chat.

Makes sense, seems to work - however - to make it do so I had to rename the command as eventually !slap just flat out quit responding.

If i run it as !slaptest it worked, !slap doesn’t answer at all. Removed the module, rebooted the bot and the commands still show in the Permissions list and if I put the module back in (this is physically removing the file, deleting the module from the db with !module delete etc) it still doesn’t work.

The command will stay in the permissions table. The only way to remove it from the permissions table would be to edit the database and delete the row. Can you show me your current code so I can do some testing?