Skip to main content

Game panels

A message that shows how busy each of your games is, and keeps itself current.

Setting one up​

Two steps, and they are separate on purpose.

Build the list. /games add puts a game on this server's list, /games remove takes one off, /games list shows it. /games import pulls a list in from presets rather than typing them one at a time.

Post a panel. /gamepanel post puts the board in a channel. From then on it edits itself on a timer.

The list is the server's, and a panel draws from it. So two panels in two channels show the same games, and adding a game updates both without touching either message.

How the refresh works​

The bot wakes once a minute and edits only the panels that are due. Ten panels on ten-minute timers cost one wake-up a minute and one edit every ten, rather than ten requests a minute forever.

A player count for the whole list costs one request, not one per game.

/gamepanel refresh forces an update now, if you cannot wait for the timer.

When a panel goes missing​

A panel whose message somebody deleted un-posts itself. It does not keep trying to edit a message that is gone and log an error once a minute for the rest of the year.

/gamepanel list shows what is still posted where. /gamepanel delete removes one deliberately.

Why there is a limit​

A panel holds a fixed number of games. Discord's own component budget is the hard ceiling, and the limit here sits well inside it, because a panel listing forty games is a wall nobody reads.

If you run more games than fit, post two panels with two lists rather than trying to raise the ceiling.

When you are stuck

The panel says zero players and the game is busy

Roblox reports presence with a delay, and a game with no place id on its entry cannot be counted at all. Check the entry has one.

The panel has stopped updating

Its message was deleted, so it un-posted itself. /gamepanel list will not show it. Post a new one.

A game I added is not on the panel

The panel is full, or it has not hit its refresh yet. /gamepanel refresh answers which.

"This feature is not enabled in this server."

The module is off. Ask the bot owner to switch it on.