erinknight242 / hsbot Goto Github PK
View Code? Open in Web Editor NEWHeadspring's Hipchat Hubot
Headspring's Hipchat Hubot
Some scripts will work nicer with an API key. Consider setting these up:
Rather than removing the scripts that talk back after hearing a specific keyword, we're going to limit them to specific 'big' rooms.
Environment variables will need to be added for each room, and the following scripts will need to handle responding to ONLY those rooms:
Script is currently accesing the v1 API. See v2 here http://www.yelp.com/developers/documentation/v2/overview. Will require authentication via oauth.
After switching the brain to Azure storage, local dev becomes a bit more annoying since those required keys will bomb the process.
Update math script command to use mathjs found at https://github.com/hubot-scripts/hubot-calculator
In the move from Heroku to Azure, there is no way to specify environment variables on the Linux VM hsbot is hosted on via the Web UI (unlike Heroku), so for now we have declared those variables in the bash script that gets run on the VM to run/restart hsbot.
We should move these out of that bash script and into something like Vault, Azure KeyVault, or something similar.
hsbot bomb
ie.
hsbot pizza bomb
hsbot whatever bomb
Google changed the maps URL scheme, so update this to work.
Optionally, see if there is a google maps api we could hook into instead for this to return the image of the traffic map instead of a link to the Google Maps page, this way Hipchat will render the image.
We should update it to more match our current setup, since it mentions things we don't do anymore like utilize the Redis brain (using Azure Storage instead) and deploying to Heroku (deployed to Azure Web App instead)
Switch Parker and Davis conference rooms to show the appropriate layout pictures.
The command 'hsbot conf rooms Austin' previously pulled up all information around the Austin conference rooms. It used an XML file on Azure to store the information.
The script needs to be updated to make use of Azure's blob storage, or needs to be removed.
hsbot would store a collection of key/values linking users to teams
A sample set of commands might look like:
`
hsbot team create/delete
hsbot team add/remove
hsbot brag on @ // would brag on each member of the team
`
The lunch me script is returning a 404. We can either fix the script or replace it with something that already exists.
Note: If changed, get a new API key and store it in an ENV variable.
Update it to use v2 of the hipchat api
Trying to brag and getting no response in the 1st Floor Austin room. hsbot still responds to other commands. When connected to the hsbot VM, an error is thrown on line 139.
Understand how the logging works in Azure, so that we can look back to see what caused a crash. Log streaming works, but only if you have it running and can reproduce the issue. For phantom crashes, we are in the dark right now. It looks like we have logging turned on, but the existing logs are back from 2017, which may have been a previous configuration.
Script should provide a new command for users to set a location with name (eg. austin = '123 our address, Austin, TX 78759'). These locations will be stored in the hubot brain.
Lunch me command should be reworked so users can specific a location as well as search terms. Good format may be [hubot lunch me around austin tacos] but whatever works.
Currently if you try to run "lunch me" it gets an oauth error. Determine what the appropriate method is to authenticate with the current Yelp API, and update our lunchme script to use that configuration.
For some scripts, we only want them to listen/respond in specific rooms, so we should try to come up with a better way to handle this.
You can see in the beer.coffee script how we pull a list of rooms from the env variables and then only if we are in those rooms, respond. If we ever add another room that's approved, we need to update each script to add it in manually, which can be tedious.
Some scripts are duplicating responses:
Right now, outputs each result separately, so I get a notification saying, for instance, "12 new notifications" when it's just that there were 12 job applicants.
Currently, out hsbot VM is quite crude. Perhaps Dokku would provide a better/nicer/cleaner environment.
Reference: http://www.gummy-stuff.org/Yahoo-data.htm
Should be pretty easy to query for the last price and % change for the day
Something like:
hsbot stock price GOOG
[Wed Jul 08 2015 22:04:20 GMT+0000 (UTC)] ERROR TypeError: Cannot call method 'toLowerCase' of undefined
at getEmployeeByName (/home/chris/dev/hsbot/scripts/nominations.coffee:118:34, <js>:162:53)
at TextListener.callback (/home/chris/dev/hsbot/scripts/nominations.coffee:173:17, <js>:227:19)
at TextListener.Listener.call (/home/chris/dev/hsbot/node_modules/hubot/src/listener.coffee:43:7, <js>:37:14)
at Robot.receive (/home/chris/dev/hsbot/node_modules/hubot/src/robot.coffee:230:9, <js>:154:33)
at HipChat.Adapter.receive (/home/chris/dev/hsbot/node_modules/hubot/src/adapter.coffee:66:5, <js>:47:25)
at /home/chris/dev/hsbot/node_modules/hubot-hipchat/src/hipchat.coffee:190:11, <js>:237:26
at invokeCallback (/home/chris/dev/hsbot/node_modules/hubot-hipchat/node_modules/rsvp/node/rsvp.js:161:15)
at Object.<anonymous> (/home/chris/dev/hsbot/node_modules/hubot-hipchat/node_modules/rsvp/node/rsvp.js:193:9)
at /home/chris/dev/hsbot/node_modules/hubot-hipchat/node_modules/rsvp/node/rsvp.js:13:16
at process._tickCallback (node.js:448:13)
The scheduled Dow Jones Industrial Average market closed post is running an hour off schedule. This should run at 4:15PM EST, and it's firing at 3:15PM EST.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.