Self-Host Finish the Lyric
You can host the Finish the Lyric bot yourself with a few simple commands
π Quick Start
Paste this in your terminal:
bash <(curl -Ss https://raw.githubusercontent.com/myferr/finish-the-lyric/refs/heads/main/x.sh)
This script will:
- Clone the repository
- Install dependencies
- Prompt you to configure environment variables
- Provide next steps to run the bot locally
π Self-Hosting the Dashboard
The Finish the Lyric Dashboard allows you to control the bot from your browser.
The dashboard is equipped with:
- β One-click start & stop
- π§Ύ Live terminal output
- π Auto-refreshing bot status
- πΎ In-memory log persistence
π§± Requirements
Ensure you have Python 3.10+ and pip installed.
βοΈ Setup & Boot
1. Navigate to the dashboard directory:
cd .dashboard/
2. Install Python dependencies:
Install required libraries using pip:
pip install fastapi uvicorn pydantic
Note:
subprocess
,os
,signal
,asyncio
,threading
,queue
, andsys
are part of the Python standard library β no extra install required.
3. Start the dashboard:
python3 main.py localhost
This will start the FastAPI web server at
http://localhost:8000
.
π₯οΈ Usage
Open your browser and go to: http://localhost:8000
Youβll see a web interface with:
- A βRun Botβ or βStop Botβ button
- A live terminal showing bot output
π‘ Features Recap
β One-click bot controls Easily start or stop the bot with a single button.
π‘ Live terminal output The console stream is displayed in real-time.
π§ Status auto-refresh The dashboard regularly checks and updates the bot status.
ποΈ Memory-persisted logs Console output is saved in memory for session review.