flapjax / dropbot

A sound drop bot based on airhornbot.

Home Page:https://airhorn.solutions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dropbot

Dropbot is a mod to the wonderful Airhorn Bot, including more sound drops and a help system. Currently I host the bot on a dedicated server and do not make use of the webserver, so I cannot guarantee the webserver still works. The original Airhorn bot instructions are included below.

Airhorn Bot

Airhorn is an example implementation of the Discord API. Airhorn bot utilizes the discordgo library, a free and open source library. Airhorn Bot requires Go 1.4 or higher.

Usage

Airhorn Bot has two components, a bot client that handles the playing of loyal airhorns, and a web server that implements OAuth2 and stats. Once added to your server, airhorn bot can be summoned by running !airhorn.

Running the Bot

First install the bot:

go get github.com/hammerandchisel/airhornbot/cmd/bot
go install github.com/hammerandchisel/airhornbot/cmd/bot

Then run the following command:

bot -r "localhost:6379" -t "MY_BOT_ACCOUNT_TOKEN" -o OWNER_ID

Running the Web Server

First install the webserver: go install github.com/hammerandchisel/airhornbot, then run make static, finally run:

./airhornweb -r "localhost:6379" -i MY_APPLICATION_ID -s 'MY_APPLICATION_SECRET"

Note, the webserver requires a redis instance to track statistics

Thanks

Thanks to the awesome (one might describe them as smart... loyal... appreciative...) iopred and bwmarrin for helping code review the initial release.

About

A sound drop bot based on airhornbot.

https://airhorn.solutions

License:MIT License


Languages

Language:JavaScript 55.5%Language:Go 32.8%Language:CSS 9.4%Language:HTML 2.0%Language:Makefile 0.4%