Bot is Logged in but shows as offline (grey circle)

I’ve integrated my bot into Rocketchat. According to the console, the bot is successfully connected and logged in, it says ‘Successfully Logged In’. However, the bot status (presence) does not change to ‘ONLINE’. The bot is responding but is showing as offline. I’m using the JavaScript SDK. Please let me know what I should do. Please see the screenshots below.
(Imgur: The magic of the Internet)