https://github.com/rjryt/samp-music-streamer
SAMP music streamer
https://github.com/rjryt/samp-music-streamer
Last synced: 3 months ago
JSON representation
SAMP music streamer
- Host: GitHub
- URL: https://github.com/rjryt/samp-music-streamer
- Owner: RJRYT
- License: apache-2.0
- Created: 2023-06-17T14:16:07.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-04-25T14:19:57.000Z (about 2 years ago)
- Last Synced: 2025-01-26T03:12:53.606Z (over 1 year ago)
- Language: EJS
- Homepage:
- Size: 38.1 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# SAMP-Music-Streamer
The SAMP music streamer build for SAMP Roleplay servers.
We can stream playable(on SAMP) songs by using this project.
## Availability
- Can run on Pterodactyl panel
- Can Run on Replit
- Can Run on Heroku
## Requirement
- You need required disk space to store audio files.
## Installation
### Replit
- Fork repl from [@Somaliyo](https://replit.com/@Somaliyo/SAMP-Music-Streamer)
- Add Secrets
- `PORT` : Server port
- `AUTH` : Your Auth Code (Admin password)
- Run the server
### Pterodactyl
- Create new server on pterodactyl with the egg `nodejs generic egg`
- When panel is ready to use go to startup tab and add `GIT REPO ADDRESS` as `https://github.com/RJRYT/SAMP-Music-Streamer.git`
- Add `INSTALL BRANCH` as `main`
- Set `JS FILE` as `app.js`
- Goto server settings and reinstall server.
- After it add your panel port and Authcode to .env (Note: Rename `example.env` to `.env`) file
- Start the server
Your server is ready to use.
### Usage
When your server is marked as running. Open server on chrome. upload music as your choice.
##### Routes
- `yourdomain.com/` : Upload new music
- `yourdomain.com/list` : List all uploaded music
- `yourdomain.com/music` : List all uploaded music (For SAMP)
- `yourdomain.com/rename/:authcode` : To rename uploaded music. Only allowed who know Authcode
- `yourdomain.com/delete/:authcode/:filename` : to delete uploaded music. Only allowed who know Authcode eg: `yourdomain.com/delete/demoauthcode/demo.mp3`
## Developer credits
This script build by [RJRYT](https://rjryt.me)
## Copyrights
SAMP-Music-Streamer is licensed under the [Apache License 2.0
](https://github.com/RJRYT/SAMP-Music-Streamer/blob/main/LICENSE)
## Developer Contact
#### RJRYT
- [Website](https://rjryt.me)
- [Replit](https://replit.com/@Somaliyo)
- [Github](https://github.com/RJRYT)
- [Email](mailto:robinjratr@gmail.com)
### If you like this project please give us a 🌟 star.