Closed nishi7409 closed 6 years ago
You are failing to use promises to wait for the login to complete.
rbx.login(options)
.then(function () {
rbx.shout(...);
});
Also, it looks like you are making a discord bot. Instead of logging in when the command is executed just login when the bot is turned on and all the commands should be executed from that user.
// Put this at the top
rbx.login(options);
Ah, fixed (forgot to comment earlier)!
My code -