[go: up one dir, main page]

Skip to content

Discord bot that plays user's intro song obtained from youtube

License

Notifications You must be signed in to change notification settings

sonastea/hypebot

Repository files navigation

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 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. Run the binary with ./hypebot[.exe] -t "bot token" -g "guild id" depending on your os.

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 three variables: TOKEN, GUILD_ID, POToken.
  2. Follow this guide to get your POToken to circumvent youtube's warnings.
  3. Then follow this guide to export your cookies as cookies.txt in the root folder.
  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 <container_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 to create an issue.