speakerbot

command module
v0.0.0-...-51b0836 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 24, 2016 License: MIT Imports: 21 Imported by: 0

README

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

  • !play - Queues/Plays Youtube link, or searches Youtube and picks the first result
  • !skip - Skips current track
  • !stop - Stops playing and clears queue
  • !help - Sends a message in text channel with the above 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

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL