https://github.com/sonastea/hypebot
Discord bot that plays user's intro song obtained from youtube
https://github.com/sonastea/hypebot
api discord discord-bot ffmpeg go golang testing youtube-dl
Last synced: 5 months ago
JSON representation
Discord bot that plays user's intro song obtained from youtube
- Host: GitHub
- URL: https://github.com/sonastea/hypebot
- Owner: sonastea
- License: gpl-3.0
- Created: 2022-07-08T02:28:21.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2025-12-17T05:31:19.000Z (6 months ago)
- Last Synced: 2025-12-18T11:16:13.373Z (6 months ago)
- Topics: api, discord, discord-bot, ffmpeg, go, golang, testing, youtube-dl
- Language: Go
- Homepage: https://hypebot.dev
- Size: 227 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# HypeBot
> HypeBot is a discord bot that plays a user selected song upon entering a voice channel.
## Running HypeBot
Download the latest binaries
1. Go to [releases](https://github.com/sonastea/hypebot/releases) and download the latest version.
2. Follow the provided instructions and you are set.
Building from source
1. Clone this repository.
2. Build the binary with `go build ./cmd/hypebot`
and an executable named "hypebot" will be created.
3. Export your cookies as a `cookies.txt` in the root directory. [(Required)](https://github.com/yt-dlp/yt-dlp/wiki/Extractors#exporting-youtube-cookies)
4. Run the binary with `./hypebot[.exe] -t "bot token" -g "guild id"` depending on your os.
- Use `-disable_potoken=false` flag to enable POToken (requires `POToken` env var).
## Running as docker container
Building the image
1. Go to root of the folder after cloning this repository.
2. Build the image with `docker build -t hypebot .`
Run the image in a container
1. Create an .env file with these variables:
- `TOKEN` - Your discord bot token.
- `GUILD_ID` - Your discord server id.
- `PROXY_URL` – A proxy url to use when making requests. *(Optional)*
- `CUSTOM_STATUS` – The custom status message for your bot. *(Optional)*
- `POToken` - Proof of Origin token. Only used when `-disable_potoken=false`. *(Optional)*
2. Export your cookies as a `cookies.txt` in the root directory. [(Required)](https://github.com/yt-dlp/yt-dlp/wiki/Extractors#exporting-youtube-cookies)
3. *(Optional)* If you want to use POToken, pass `-disable_potoken=false` flag and provide your `POToken` env var. [Learn more](https://github.com/yt-dlp/yt-dlp/wiki/Extractors#po-token-guide)
4. Use your discord bot token for "TOKEN" and your discord server's id for "GUILD_ID".
5. Create a docker container from the hypebot image with `docker run --env-file .env -d hypebot`.
6. Docker hypebot container should be running in the background.
> Name your container with `docker run --env-file .env -d --name hypebot`.
## Contact Me
Message me on Discord `nastea` if you have any questions. Feel free to report any bugs or create a pull request, and I'll try to respond as soon as I can.
Click the link [here](https://github.com/sonastea/hypebot/issues/new) to create an issue.