HypeBot is a discord bot that plays a user selected song upon entering a voice channel.
Download the latest binaries
- Go to releases and download the latest version.
- Follow the provided instructions and you are set.
Building from source
- Clone this repository.
- Build the binary with
go build ./cmd/hypebotand an executable named "hypebot" will be created. - Export your cookies as a
cookies.txtin the root directory. (Required) - Run the binary with
./hypebot[.exe] -t "bot token" -g "guild id"depending on your os.- Use
-disable_potoken=falseflag to enable POToken (requiresPOTokenenv var).
- Use
Building the image
- Go to root of the folder after cloning this repository.
- Build the image with
docker build -t hypebot .
Run the image in a container
-
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)
-
Export your cookies as a
cookies.txtin the root directory. (Required) -
(Optional) If you want to use POToken, pass
-disable_potoken=falseflag and provide yourPOTokenenv var. Learn more -
Use your discord bot token for "TOKEN" and your discord server's id for "GUILD_ID".
-
Create a docker container from the hypebot image with
docker run --env-file .env -d hypebot. -
Docker hypebot container should be running in the background.
Name your container with
docker run --env-file .env -d --name <container_name> hypebot.
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 to create an issue.