Coder Social home page Coder Social logo

sports-bot's Introduction

Fox SPORTS SportsBot

Requirements

Make sure you're using node 6.7.0 or higher. Had some issues around sockets inside of @slack/client or node-wit that didn't seem to run under node 4.

Startup

Copy env-sample.json to env.json and fill in the details.

wit.ai requires an app and some stories created. Use witai-sportsbot.zip as a starting basis, and update your env.json to the specified keys (we didn't end up using them all).

Create a Bot from your team's integration management and take note of the API key to enter into env.json

Phrases

You can communicate with your Sports Bot with a number of phrases but not that only one of his response set is publicly accessible (at this stage).

  1. Get top five players for runs
  2. Get top 6 teams for tries
    • (best|top|lowest|bottom|worse) (players|teams) (1-10) (stat-type)
  3. Show tries for Johnathan Thurston
    • (stat-type) (player-name)
  4. What was the score between sharks and rabbits
    • (team-name) (team-name)
  5. When is the sharks game on?
    • (team-name)
  6. Hi sportsbot
  7. Who will win Game Changer

Phrasing 1 and 2 will work as it uses a public API, the rest is off an internal API that was created on the day as it required some fuzzy searching against player names.

sports-bot's People

Contributors

darrennolan avatar

Stargazers

Connor Hayden avatar

Watchers

James Cloos avatar  avatar Karuna Baral avatar Ibrahim Abdalla avatar Thomas Kaurin avatar Sean Carey 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.