Have you ever wanted to check on your stock portfolio from the convenience of your chat applications? Of course you have. Well fear not, now you can go ape and throw your
You will need an API key from finnhub.io.
Steps to get an API key.
- Navigate to finnhub.io.
- Click on "Get free API key".
- Register an account.
- Save the API key.
From your hubot installation directory.
HUBOT_FINNHUB_API_KEYenvironment variable into your setup.
npm install hubot-stonk-checker --save
hubot stonks <symbol>
stock are all aliases to the same set of functionality so if you're not an APE with diamond hands, you can just use
stock and be pedestrian.
Shows a set of stocks deemed memeworthy, or more accurately, brought into prominence from /r/wallstreetbets.
If you're using slack, for best functionality, you want to enable the emojis. They're found in the
assets directory. If you add them to your slack team with the names provided (minus the extensions) they'll get used when retrieving stock information if certain conditions are met.
Setting the memestonk sets
The list of memestonks can be set via
HUBOT_MEMESTONKS and is comma seperated.
It defaults to
Setting a special stonk set.
HUBOT_SPECIAL_STONKS provides list of stock ticker symbols that you can address in a short-hand way and not through asking the bot to do
hubot stock symbol but just
hubot symbol therefore saving you five keystrokes. (This preserves some backward compatibility with an older stock checking module as well).
As an example
This will allow bot beavhior to be:
hubot stock cat
Basically, git clone this repo. Run
npm i to get the deps.
npm test to test things.