A complete 2048 game for Discord bots built with Bot Designer For Discord (BDFD) using Components V2.
Combine numbered tiles to reach 2048! Features a 4×4 board, multi-page leaderboard, dynamic colors, and 6 language versions.
| Language | Folder | Readme |
|---|---|---|
| 🇬🇧 English | English/ |
README.md |
| 🇪🇸 Español | Español/ |
LEEME.md |
| 🇫🇷 Français | Français/ |
LISEZMOI.md |
| 🇩🇪 Deutsch | Deutsch/ |
LIESMICH.md |
| 🇮🇹 Italiano | Italiano/ |
LEGGIMI.md |
| 🇵🇹 Português | Português/ |
LEIAME.md |
This is the classic 2048 puzzle game adapted for Discord. Players use movement buttons (⬆️ ⬇️ ⬅️ ➡️) to slide and merge numbered tiles on a 4×4 board. The goal is to create a tile showing 2048.
- 🎮 4×4 board rendered with Components V2 buttons (16 cell buttons + 4 movement buttons + 2 control buttons)
- 🏆 Multi-page leaderboard with top players, navigable with ⏮️
◀️ ▶️ ⏭️ buttons - 🎨 Dynamic colors: cell buttons change color based on tile value; container changes color based on game state (blue = playing, green = won, red = lost)
- 🔒 Owner-only gameplay: only the user who started the game can interact with it (ephemeral warnings for others)
- 🛡️ Anti-stale gameID: prevents old game buttons from corrupting a new game
- 🌍 6 language versions: English, Spanish, French, German, Italian, Portuguese
- ⚡ BDScript 2 with
$try/$catcherror handling
You must create 2 variables in your BDFD app (under Variables section):
| # | Name | Default value |
|---|---|---|
| 1 | points_2048 |
0 |
| 2 | game_2048 |
no value. |
ℹ️
game_2048is created as a Global variable, but in the code it is always used with aUser ID, which automatically turns it into a global-user variable. This way you only have ONE user variable (points_2048).
Each language folder contains 4 files:
| File | Purpose |
|---|---|
README / LEEME / LISEZMOI / etc. |
Setup instructions for BDFD |
| Main Command file | The !2048 command code |
| Callback file | The $onInteraction callback code (handles all button clicks + leaderboard navigation) |
| Leaderboard file | The !leaderboard command code |
This project is licensed under the MIT License — see LICENSE for details.
Found a bug or want to add a new language? Pull requests are welcome!