Coder Social home page Coder Social logo

destbot's Introduction

slack-destiny-bot

A slack-specific hubot integration to interact (readonly) with the Bungie Destiny API.

A hubot slack adapter is needed to operate.

This is mostly practice in me learning coffeescript and messing around with a hubot integration for my friends slack domain. So, no pull requests or comments.

There are a few commands that return information about players, at this point it's mostly gear lookups by a gamertag (only for xbox one at this time).

COMMANDS

  • <bot-name> armory <gamertag> - Returns that players Grimoire Score.
  • <bot-name> played <gamertag> - Returns that players Last played character and lightlevel
  • <bot-name> inventory <gamertag> - Returns that players Last played character's equipped inventory
  • <bot-name> vendor xur - Returns Xur's Inventory or a warning when he isn't available

Installation

You will need to have hubot setup with the slack-adapter

Run the following command

$ npm install slack-destiny-bot

Then to make sure the dependencies are installed:

$ npm install

To enable the script, add a slack-destiny-bot entry to the external-scripts.json file (you may need to create this file).

["slack-destiny-bot"]

You will need to get a BUNGIE_API_KEY which you can get here

You will need to set the key as a config variable wherever you plan to host your hubot Mine is hosted on heroku so I use the following command

heroku config:set BUNGIE_API_KEY=<your-key>

destbot's People

Watchers

 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.