discordmuffin/examples/airhorn
Chris Rhodes 9b6b657083 Merge pull request #249 from iopred/develop
Correctly merge GUILD_UPDATE events. Closes #242
2016-09-27 21:15:03 -07:00
..
airhorn.dca Add a new example that acts like airhorn.solutions 2016-04-25 17:13:41 -07:00
main.go Merge pull request #249 from iopred/develop 2016-09-27 21:15:03 -07:00
README.md Update README.md 2016-04-25 18:01:59 -07:00

Airhorn Example ====

This example demonstrates how to utilize DiscordGo to listen to an !airhorn command in a channel and play a sound to that users current voice channel.

Build

This assumes you already have a working Go environment setup and that DiscordGo is correctly installed on your system.

go install github.com/bwmarrin/discordgo/examples/airhorn
cd $GOPATH/bin
cp ../src/github.com/bwmarrin/discordgo/examples/airhorn/airhorn.dca .

Usage

Usage of ./airhorn:
  -t string
        Account Token

The below example shows how to start the bot.

./airhorn -t <bot token>

Creating sounds

Airhorn bot uses DCA files that are pre-computed files that are easy to send to Discord.

If you would like to create your own DCA files, please use either:

./dca-rs -i <input wav file> --raw > <output file>