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. Adding a game shows up on each panel the next time it refreshes, 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 shows the first 25 games on the server's list. 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.

Every panel draws from the same list, so a game past the 25th never appears on a panel. Keep the list to the games you want shown.

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 universe id on its entry cannot be counted at all. Add it again with /games add and its game URL.

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 shows only the first 25 games on the list, so a later one never appears. Or the panel has not hit its refresh yet. /gamepanel refresh forces an update, but it does not say whether the panel is full.

"Game panels is not enabled here."

The module is off. A server admin turns it on with /moduleadmin enable.