dustinblackman / speakerbot

A simple Discord music bot written in Go
MIT License
51 stars 8 forks source link

Speakerbot

Build Status Go Walker Go Report Card ImageLayers

Speakerbot is a multiserver music bot for Discord written in Go. Supports Youtube links and querying Youtube, as well as on the fly converting resulting in instant playback (no wait times between songs!).

Commands

Installation

Speakerbot requires both ffmpeg and opus-tools to be installed locally and available in PATH. Currently tested with Go 1.6 on OSX.

go get github.com/dustinblackman/speakerbot
make

A configuration file is available to plugin your Discord email and password, as well as a Google API key that can search Youtube. You can either rename the config.example.json to config.json, or copy/paste the following.

{
  "email": "",
  "password": "",
  "googleKey": ""
}

Lastly, start Speakerbot

./speakerbot

Docker

An automated docker build is available here. You can boot it up with docker-compose like so as an example.

speakerbot:
  image: dustinblackman/speakerbot
  environment:
    EMAIL:
    PASSWORD:
    GOOGLEKEY:

Contribute/Development

If you wish to contribute and add features to Speakerbot, feel free! This app was just a practice app to begin learning Go, so there won't be very much (or any at all) future development from myself. For a more full and feature packed bot, check out Gravebot.

Make sure to run make test before submitting a PR.

License

MIT