Git Product home page Git Product logo

slack-pongbot's Introduction

Pongbot

Slack Bot for game tracking.

Build Status

Deploy to Heroku

Installation

Deploy with your preferred solution, eg. with Heroku.

Administrative commands require the ADMIN_SECRET environment to be set.

heroku config:add ADMIN_SECRET=secret

Visit https://yourteamname.slack.com/services/new and choose "Outgoing WebHooks." Choose which channels you would like pongbot active in, a trigger word with pongbot, and the url that you deployed to.

Using Pongbot from Slack

Make sure you're registered with pongbot.

pongbot register

Challenge someone, or a team.

Singles:

pongbot challenge singles <opponent's name>

Doubles:

pongbot challenge doubles <teammate's name> against <opponent_1> <opponent_2>

Let them run this, to accept the challenge. Only one other person (teammate or opponent) needs to accept to confirm the challenge.

pongbot accept

If you can't play now, pongbot decline.

Game On!

Record the match. Only the person/team that lost can record, it'll automatically change everyone's scores/rankings.

pongbot lost

Other Commands

  • pongbot decline - Decline's any proposed match.
  • pongbot chicken - Chicken out of your own challenge before it is accepted, or out of an accepted challenge (as the challenger or challenged).
  • pongbot leaderboard <1-infinity> - Shows the top players, sorted by Elo.
  • pongbot rank <someone's name> - Gets that person's stats. If none given, it will return your own stats.
  • pongbot source - Get's Pongbot's Github repository.
  • pongbot reset <name> <secret> - Admin-only command that reset's a person's stats.
  • pongbot new_season <secret> - Admin-only command that reset's all stats and begins a new season.

API

See API Documentation.

License & Copyright

Copyright (c) 2014-2015, Andrew Vy and Contributors

ISC License, see LICENSE for details.

slack-pongbot's People

Contributors

dblock avatar andrewvy avatar geoffrey avatar 101100 avatar megatron-me-uk avatar

Watchers

Alf Mikula avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.