A simple Discord bot for playing a Tetris-like game in chat.
- Play Tetris with emoji graphics directly in Discord
- Move, rotate, and hard drop pieces using chat commands
- Automatic piece dropping
- High score tracking and leaderboard
- User avatars shown in high scores
!tris— Start a new game!a— Move left!d— Move right!w— Rotate piece!s— Hard drop!q— End current game!score— show top scores and statistics!score @— show score and data about this playerer>
!trishelp— show help!setspeed— set game speed serverwide
Combine commands (e.g., !aad) for quick moves.
- Install dependencies:
pip install discord.py - Place your Discord api in
token.txtfile in the same directory as tris.py - Run the bot:
python tris.py
Or invite with https://discord.com/oauth2/authorize?client_id=1389591768273518664&permissions=551903422528&integration_type=0&scope=botmp;scope=bot