Commands and Gameplay
Random Games has two command surfaces:
- Message command:
!game - Slash command:
/game leaderboard
The message command is for starting games. The slash command is for viewing leaderboards.
Message Commands
| Command | What it does |
|---|---|
!game | Shows the available games list. |
!game help | Shows the available games list. |
!game list | Shows the available games list. |
!game random | Starts a randomly selected game. |
!game <alias> | Starts a specific game by alias. |
!game <alias> <seconds> | Starts a specific game with a one-time custom duration. |
Examples:
!game trivia
!game logo
!game pokemon 20
!game randomThe plugin deletes the original !game message when possible to keep the game
channel clean.
Slash Commands
| Command | What it does |
|---|---|
/game leaderboard type: daily | Shows the daily leaderboard. |
/game leaderboard type: weekly | Shows the weekly leaderboard. |
/game leaderboard type: monthly | Shows the monthly leaderboard. |
Leaderboard results are generated as an image card. If there are more than ten players, the command response includes buttons to page through results.
Supported Games
| Game | Alias | Main interaction |
|---|---|---|
| Rock Paper Scissors | rps | Button choice |
| Trivia | trivia | Text answer |
| Riddles | riddles | Text answer |
| Unscramble | unscramble | Text answer |
| Typeracer | type | Fast text typing |
| Guess The Song | song | Text answer |
| Who’s That Pokemon | pokemon | Button choice |
| Guess The Pokemon | guesspokemon | Button choice |
| Guess The Celebrity | celeb | Visual or text answer |
| Guess The Movie | movie | Visual or text answer |
| Quick Math | math | Text answer |
| Odd One Out | oddone | Button choice |
| Guess The Country | country | Text or visual answer |
| Capital Guesser | capital | Text answer |
| Gap Fill | gap | Text answer |
| Emoji Guesser | emoji | Text answer |
| Guess The Number | number | Text answer |
| Roman Numeral Conversion | roman | Text answer |
| Guess The Landmark | landmark | Button choice |
| Guess The Comic Character | comic | Button choice |
| Memory Match | memory | Button choice |
| Heads Or Tails | hot | Button choice |
| Guess The Logo | logo | Button choice |
| Corners | corners | Button choice |
Automatic Game Flow
When randomGames.channelId is set, the plugin watches that channel. It tracks
message count, checks the configured interval, respects cooldowns, and starts a
random game when the trigger rules allow it.
The normal flow is:
- A message is posted in the configured game channel.
- The plugin increments the channel activity counter.
- The handler checks whether a game is already active.
- The handler checks cooldown and trigger rules.
- A random game is selected from
src/games. - A countdown is posted.
- The game module runs the round.
- The winner is recorded.
- Rewards and leaderboard updates are applied.
Manual Game Flow
When a member runs !game trivia, the plugin:
- Deletes the command message if the bot has permission.
- Checks
commands.gameCommandRoleif it is configured. - Converts the alias into the game class name.
- Checks whether a game is already running in that channel.
- Applies a custom duration if one was provided.
- Runs the countdown and game module.
Reward Flow
Reward output depends on rewards.type.
| Value | Behavior |
|---|---|
both | Gives XP and coins. |
coins | Gives only economy coins. |
xp | Gives only XP. |
Reward amount is selected from the configured size ranges. First, second, and third place can have different probability weights from the default winner reward.
Leaderboard Flow
Random Games tracks separate daily, weekly, and monthly win counts. At each scheduled reset, it can:
- Announce top players
- Assign MVP roles
- Clear the period leaderboard
- Keep the next period ready for new wins
Use /game leaderboard to view current data at any time.