jasonodonnell / BrunoBot

BrunoBot notifies Discord channels when professional Dota 2 games are being played.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bruno Bot

Go Report Card

Bruno Bot generates Discord notifications when pro Dota 2 games are being played.
It can be configured to notify on any professional game or only teams on a whitelist.

Note: This will only alert for the first game in a series.

Built using: Go 1.11.2

Installing

To install this package, assuming $GOPATH is setup, golang is installed and working, run:

$ go install github.com/jasonodonnell/brunobot

Setup

Prior to running, a Discord Webhook should be created for the room you want to send notifications to. See the Webhooks menu in Server Settings for your Discord.

Next, configure config.json with the parameters specified.

Parameter Description
Teams This is the array of teams for filtering notifications.
Webhook URL for the Webhook generated by Discord for your server.

With the config.json file configured, brunobot can now be run:

$ brunobot --config=/path/to/config.json

Cron

To avoid duplicated notifications, Bruno Bot will only notify on games less than a minute old. This should be run via cron every minute:

* * * * * /usr/local/bin/brunobot --config=/path/to/config.json

About

BrunoBot notifies Discord channels when professional Dota 2 games are being played.

License:MIT License


Languages

Language:Go 100.0%