Bot offline for livechat but appears online

Hi ! I’m working on a bot for RocketChat using the kotlin SDK but I’ve run into a weird issue. The bot is online (I see the green dot next to its name) but it’s not considered as an active livechat-agent (it has the livechat-agent and bot roles).
As it’s not considered active, if it’s the only agent the livechat is offline and if it’s the only agent in a department I can’t transfer a user to that department.