Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

9 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🎧 Study247 Bot β€” 24/7 Discord Lofi Radio

A self-hosted Discord music bot that streams lofi radio 24/7 and stays connected even if the voice channel is empty.

Built with:

  • Node.js
  • discord.js
  • @discordjs/voice
  • Express (for cloud uptime support)

πŸš€ Features

  • βœ… Automatically joins a specific voice channel
  • βœ… Streams continuous radio (never-ending stream)
  • βœ… Auto-restarts stream if connection drops
  • βœ… Can run 24/7 on Render / Railway
  • βœ… Includes Express web server for uptime monitoring
  • βœ… No premium, no dependency on public music bots

πŸ“¦ Local Installation

1️⃣ Clone the repository

git clone https://github.com/CodeWithShrey-collab/Study247-bot.git
cd study247bot

2️⃣ Install dependencies

npm install

3️⃣ Create environment file

Create a .env file in the root directory:

TOKEN=your_discord_bot_token
VOICE_CHANNEL_ID=your_voice_channel_id
STREAM_URL=https://live.hunter.fm/lofi_high

4️⃣ Run the bot

node index.js

The bot will:

  • Log in
  • Join the configured voice channel
  • Begin streaming lofi music 24/7

🌐 Deploying on Render (Recommended)

Create a Web Service on Render.

Build Command:

npm install

Start Command:

node index.js

Add the following environment variables in the Render dashboard:

  • TOKEN
  • VOICE_CHANNEL_ID
  • STREAM_URL

After deployment, use an uptime monitoring service (like UptimeRobot) to ping the service URL every 5 minutes to prevent sleep mode.


πŸ” Required Discord Bot Permissions

Voice Permissions:

  • Connect
  • Speak

Text Permissions (Optional):

  • View Channels
  • Send Messages
  • Read Message History

Note:

The bot can go down if on free plan may be after some weeks or months so u need to manually deploy again. In my case i did it on render.

About

🎧 A self-hosted 24/7 Discord lofi radio bot built with Node.js and @discordjs/voice. Runs continuously on cloud hosting.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages