Automatically update your Roblox "About Me" section containing information of the currently playing song on Spotify.
Spotiblox is a bash script that monitors your Spotify playback and automatically updates your Roblox profile's "About Me" section with real-time song information. When you play music on Spotify, your Roblox profile will display:
- Current song title and artist
- Play/pause status with visual indicators (⏸ for playing, ▶ for paused)
- Song duration
- Media control symbols (⏮ ⏸ ⏭)
- Automatic profanity filtering
- Clears the About Me section when Spotify is closed
The script works by:
- Monitoring Spotify: Uses
playerctlto detect Spotify and retrieve metadata (title, artist, status, position, duration) - Processing Data: Truncates long strings, applies profanity filtering, and formats the display
- Roblox API Communication: Uses Python to make authenticated requests to Roblox's API to update the profile description
- Real-time Updates: Continuously monitors for changes and updates the profile immediately when songs change
- Linux system with
playerctlinstalled - Python 3 with
requestslibrary - Base64 utility (usually pre-installed)
- Bash shell
Ubuntu/Debian:
sudo apt update
sudo apt install playerctl python3 python3-pip
pip3 install requestsFedora/CentOS:
sudo dnf install playerctl python3 python3-pip
pip3 install requestsArch Linux:
sudo pacman -S playerctl python python-pip python-requests- Spotify must be running and accessible via
playerctl - Works with Spotify desktop application on Linux
- Ensure Spotify is installed and logged in to your account
- Clone the repository:
git clone https://github.com/dim-ghub/Spotiblox.git
cd Spotiblox- Make the script executable:
chmod +x spotiblox.sh- Run the script:
./spotiblox.sh- First-time setup:
- The script will prompt for your
.ROBLOSECURITYcookie - Enter your Roblox cookie when prompted
- The cookie will be securely stored in
~/.spotiblox(base64 encoded, 600 permissions)
- The script will prompt for your
- Log in to Roblox in your browser
- Open browser developer tools (F12)
- Go to the Application tab (Chrome) or Storage tab (Firefox)
- Navigate to Cookies → https://www.roblox.com
- Find the
.ROBLOSECURITYcookie and copy its value
- Run
./spotiblox.shin a terminal - Keep the script running while you want automatic updates
- Press
Ctrl+Cto stop the script - The script will automatically:
- Update your profile when songs change
- Clear your profile when Spotify is closed
- Handle play/pause states appropriately
- Your
.ROBLOSECURITYcookie is stored locally in~/.spotiblox - The file has restricted permissions (600) for security
- The cookie is base64 encoded to prevent accidental exposure
- Never share your
.ROBLOSECURITYcookie with anyone
You can modify these variables in the script:
MAX_TITLE_LEN: Maximum title length (default: 300)MAX_ARTIST_LEN: Maximum artist length (default: 300)CONFIG_FILE: Location of the cookie storage file
Script can't find Spotify:
- Ensure Spotify is running and playing music
- Check that
playerctl -lshows spotify in the list - Verify Spotify integration is enabled in your system
Python requests not found:
- Install with:
pip3 install requests
Permission denied:
- Make script executable:
chmod +x spotiblox.sh - Check file permissions
Cookie issues:
- Remove
~/.spotibloxfile and re-run the script - Ensure you're copying the complete cookie value
This project is licensed under the terms specified in the LICENSE file.