项目作者: MrSmoke

项目描述 :
Who's putting the kettle on? ☕
高级语言: C#
项目地址: git://github.com/MrSmoke/TeaTime.git
创建时间: 2017-05-27T01:59:24Z
项目社区:https://github.com/MrSmoke/TeaTime

开源协议:MIT License

下载


TeaTime ☕

Docker Pulls
GitHub

TeaTime is the Russian Roulette of tea making (although not strictly limited to tea).

Overview

TeaTime allows your teams to start a round of tea, join with their choice of tea, and (on round end) randomly select someone to make the round of tea.

Slack

Commands

Description Command
Show a list of available commands /teatime help
Start a new round /teatime {group}
Join a round /teatime join {option}
End a round /teatime end
Volunteer to make the round /teatime illmake

Groups

Description Command
Add a group /teatime groups add {name}
Remove a group /teatime groups remove {name}

Options

Description Command
Add a new option for a group /teatime options add {group} {name}
Remove an option from a group /teatime options remove {group} {name}

Example Usage

  1. Create a group called tea

    1. /teatime groups add tea
  2. Add some options to your group

    1. /teatime options add tea "Earl Grey"
    2. /teatime options add tea "English Breakfast"
  3. Start a new round of tea

    1. /teatime tea

    image

  4. Wait for everyone to join…

    (for those who like commands)

    1. /teatime join "Earl Grey"

    image

  5. (optional) Be a good sport and volunteer to make the round

    1. /teatime illmake

    image

  6. End the round

    1. /teatime end

    image

  7. Congratulations?

Running

Docker

The TeaTime docker image can be found on Docker Hub.

An example docker-compose.yml

  1. version: '3'
  2. services:
  3. web:
  4. image: dockdockcontainer/teatime:latest
  5. restart: always
  6. ports:
  7. - "80:80"
  8. environment:
  9. SELFHOST: https://demo.example
  10. MYSQL__HOST: localhost
  11. MYSQL__USERNAME: username
  12. MYSQL__PASSWORD: password
  13. SLACK__OAUTH__ENABLED: true
  14. SLACK__OAUTH__CLIENTID: demoid
  15. SLACK__OAUTH__CLIENTSECRET: demosecret
  16. SLACK__REQUESTVERIFICATION__ENABLED: true
  17. SLACK__REQUESTVERIFICATION__SIGNINGSECRET: secret

Supported tags

  • latest
  • dev

Environment Variables

Variable Required Description
SELFHOST false The host of the TeaTime application including the scheme, host and port. If not set, this will be generated from the request. Eg https://runteatime.com
MYSQL__HOST true The mysql server host.
MYSQL__PORT false (default 3306) The mysql server port.
MYSQL__USERNAME true The mysql users username.
MYSQL__PASSWORD true The mysql users password.
MYSQL__DATABASE false (default teatime) The mysql database.
SLACKOAUTHENABLED false (default false) Set to true to enable the “Add to Slack” button”.
SLACKOAUTHCLIENTID true if enabled The “Client ID” for the Slack app.
SLACKOAUTHCLIENTSECRET true if enabled The “Client Secret” for the Slack app.
SLACKREQUESTVERIFICATIONENABLED false (default false) Set to true to enable Slack request verification
SLACKREQUESTVERIFICATIONSIGNINGSECRET true if enabled The “Signing Secret” for the Slack app.

License

This project is licensed under the MIT License - see the LICENSE file for details