Skip to content

Simple bot for running a music competition through Slack

Notifications You must be signed in to change notification settings

scav/slack-sotw

Repository files navigation

slack-sotw

Slack bot written in Rust for creating and voting on song competitions based on a current theme.

slack-sotw

Planned supported deploy options:
  • docker compose
  • Kubernetes
  • ...?
Requirements
  • Rust
  • Diesel
  • PostgreSQL

Description

Create and manage the process up until the point where a poll should be made.

Commands

Available commands

For the weekly admin

  • /sotw start <description> start a new competition with the given description
  • /sotw stop stop the current active competition

For everyone else (including weekly admin)

  • /sotw list list all songs in the currently active competition
  • /sotw song <url> this will add a song to this weeks contest
  • /sotw vote <song_id> vote for a song currently in the active competition,
    • calling song again will overwrite prior contribution
  • /sotw info get information

Development

Planned or possible features:

  • Create polls
  • Create polls from existing polls (needs an API?)
  • Web view of current and past competitions

Setup locally

Install diesel-cli for running migrations

$ cargo install diesel_cli --no-default-features --features postgres

Use ngrok to give outside access to bot from localhost.

Building

Building a release can be done inside of a docker container.

docker build -t sotw-dev .

About

Simple bot for running a music competition through Slack

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Languages