A Discord bot that brings the official radio station of Roma Mobilità directly to your Discord server. Experience the authentic sounds of Rome's public transport system while chatting with your friends!
Because waiting for the 64 bus gives you plenty of time to appreciate good music 🚌
- Python 3.8 or higher
- FFmpeg
- A Discord Bot Token
- A Discord Server (Guild)
- Clone the repository:
git clone https://github.com/caca-org/radio-atac
cd radio-atac
- Create and activate a virtual environment:
# Create virtual environment
python -m venv .venv
# Activate it on Unix/macOS
source .venv/bin/activate
# Or on Windows (PowerShell)
.\.venv\Scripts\Activate.ps1
# Or on Windows (Command Prompt)
.\.venv\Scripts\activate.bat
- Install the required dependencies:
pip install -r requirements.txt
- Create a
.env
file in the project root:
cp .env.example .env
- Edit the
.env
file with your Discord bot token and server ID:
BOT_TOKEN=your_discord_bot_token_here
GUILD_ID=your_guild_id_here
To get these values:
- Bot Token: Create a bot application on the Discord Developer Portal
- Guild ID: Enable Developer Mode in Discord settings, then right-click your server and select "Copy ID"
- Make sure your virtual environment is activated
- Start the bot:
python __main__.py
The bot responds to the following slash commands:
/radio
- Shows the radio controls and joins your voice channel/join
- Makes the bot join your voice channel/leave
- Disconnects the bot from voice channel
- Thanks to Roma Mobilità for providing the radio stream
- All the patient commuters waiting for the Metro C to resume service
Note: This is an unofficial project and is not affiliated with ATAC or Roma Mobilità .