Skip to content

Instantly share code, notes, and snippets.

View nippe's full-sized avatar
🏠
Working from home

Niklas Nihlén nippe

🏠
Working from home
View GitHub Profile
@nippe
nippe / gist:13fc6435eb281928c87c
Created January 6, 2015 17:00
Azure WebSite Node.js version
{
"nodejs": [
{
"version": "0.10.18",
"npm": "1.3.8"
},
{
"version": "0.10.21",
"npm": "1.3.11"
},
@nippe
nippe / gist:66254c5f11c1f59addfa
Last active August 29, 2015 14:12
package.json
{
"name": "node-version",
"version": "0.0.0",
"private": true,
"scripts": {
"start": "node ./bin/www"
},
"engines": {
"node": "0.10.32"
},
$ npm install —save hubot-slack
$ git init
$ git add .
$ git commit -m “Initial Commit”
$ bin/hubot
Hubot> Hubot help
Hubot adapter - Reply with the adapter
Hubot animate me <query> - The same thing as `image me`, except adds a few parameters to try to return an animated GIF instead.
Hubot echo <text> - Reply back with <text>
Hubot help - Displays all of the help commands that Hubot knows about.
Hubot help <query> - Displays all help commands that match <query>.
Hubot image me <query> - The Original. Queries Google Images for <query> and returns a random top result.
Hubot map me <query> - Returns a map view of the area returned by `query`.
Hubot mustache me <query> - Searches Google Images for the specified query and mustaches it.
$ heroku login
Enter your Heroku credentials.
Email: niklas@hardcoded.se
Password (typing will be hidden):
Authentication successful.
updating...done. Updated to 3.26.0
$ heroku create --region eu
Creating gentle-sands-946h7... done, region is eu
https://gentle-sands-9467.herokuapp.com/ | https://git.heroku.com/gentle-sands-9467.git
Git remote heroku added
$ heroku apps:rename acastbot
$ heroku config:add HEROKU_URL=https://botname.herokuapp.com
$ heroku config:add HUBOT_SLACK_TOKEN=xoxb-1234-5678-12345-12345
$ heroic add ons:add redistogo:nano
Adding redistogo:nano on acastbot... done, v7 (free)
Use `heroku addons:docs redistogo` to view documentation.
web: bin/hubot --adapter slack --name botname