# Discord Sound Bot A soundboard bot for discord. Built with Go/React. ![Image](./screenshots/sound-bot.png) ## How to use - [Download latest release here](https://github.com/mgerb/go-discord-bot/releases) - Install [yt-dlp](https://github.com/yt-dlp/yt-dlp) - Install [ffmpeg](https://www.ffmpeg.org/download.html) - edit your config.json file - `docker-compose up` - go to http://localhost:8088 ### With docker-compose Make sure to create a `config.json` file in your data volume. Take a look at `config.template.json` for example configurations. docker-compose.yml ``` version: "3" services: go-discord-bot: image: mgerb/go-discord-bot:latest restart: unless-stopped ports: - 8088:8080 volumes: - :/bot - /usr/local/bin/youtube-dl:/usr/bin/youtube-dl ``` #### Running Bot Scripts Use the following scripts - restore-messages - used to search message history and store in database - update-db - used to run additional DB change scripts (will likely never have to be run) Example: ``` docker-compose exec go-discord-bot /server/bot-scripts update-db docker-compose exec go-discord-bot /server/bot-scripts restore-message ``` ### Commands - `clip` - clips the past minute of audio - `summon` - summons the bot to your current channel - `dismiss` - dismisses the bot from the server - `