blindbot

command module
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2018 License: Apache-2.0 Imports: 11 Imported by: 0

README

blindbot

Blindbot is a Slack bot to play participative blindtest: players submit challenges and play, blindbot do the rest.

Use it

Submit a Youtube link:

/submit https://www.youtube.com/watch?v=oHg5SJYRHA0 "possible answer 1,possible answer 2,..." "hints"

Blindbot converts new submission into an MP3 sample hosted on its server. Then it posts the new challenge in the blindtest channel with an anonymised link.

When a player gives a right answer in the challenge's thread, blindbot adds an emoji to let other players know this challenge is completed.

Incoming features

  • Statistics (best player, best submitter, per day, per week).
  • Spotify integration
  • Clean up files after a timeout (e.g. 2 weeks)
  • Draw an icon for blindbot
  • Web view for statistics.

Run it

Configure the following variables in update-and-deploy.sh:

DOMAIN_NAME="example.org" # your server domain name
SLACK_KEY="XXXXX..." # Bot User OAuth Access Token
SLACK_OAUTH2_KEY="XXXXXXXXXX..." # OAuth Access Token
SLACK_MASTER="master.email@domain.com" # your email (gives logging and advanced command in Slack)

Then run it:

./update-and-deploy.sh

# or a particular version
VERSION=v0.3.0 ./update-and-deploy.sh

Notes

The following folders will be created:

  • db/ - the database.
  • music/ - where musics are stored.
  • cred/ - https certificate.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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