Hello everyone,
We recently started using Gather and since Discord is our main source of text communication outside of Gather I would like to make a bot updating the number of members currently in the office. Is it possible to extract that from the Websocket API? I was looking yesterday and couldn’t seem to find it.
So if anyone knows I would be very grateful for your help.
Br.
2 Likes
Theoretically possible, but we haven’t figured it out yet (currently dissecting the existing code to find out what’s possible, but have limited time to play).
yeah totally!
Once you’re connected and subscribed to any player event, you can look at Object.keys(game.players).length
for the number of players currently online
Oooh this is gonna be very cool!!