Skip to content

Instantly share code, notes, and snippets.

@jorinvo
Last active December 18, 2015 00:09
Show Gist options
  • Save jorinvo/5694910 to your computer and use it in GitHub Desktop.
Save jorinvo/5694910 to your computer and use it in GitHub Desktop.
Scripts um Hubot auf Uberspace zu installieren.Für mehr Infos: http://jorinvogel.wordpress.com/2013/06/02/hubot-auf-uberspace-installieren/
  • hubot image me query - The Original. Queries Google Images for query and returns a random top result.

  • hubot animate me query - The same thing as image me, except adds a few parameters to try to return an animated GIF instead.

  • hubot mustache me url - Adds a mustache to the specified URL.

  • hubot mustache me query - Searches Google Images for the specified query and mustaches it.

  • hubot map me query - Returns a map view of the area returned by query.

  • hubot math me expression - Calculate the given expression.

  • hubot convert me expression to units - Convert expression to given units.

  • hubot pug me - Receive a pug

  • hubot pug bomb N - get N pugs

  • hubot translate me phrase - Searches for a translation for the phrase and then prints that bad boy out. hubot translate me from source into target phrase - Translates phrase from source into target. * Both source and target are optional

  • hubot youtube me query - Searches YouTube for the query and returns the video embed link.

  • hubot ping - Reply with pong

  • hubot echo text - Reply back with text

  • hubot time - Reply with current time

  • hubot die - End hubot process

  • hubot kitten me - A randomly selected kitten

  • hubot kitten me wxh - A kitten of the given size

  • hubot kitten bomb me number - Many many kittens!

  • hubot gob it - Display a GOB

  • hubot throw a coin - Gives you heads or tails

  • hubot google me query - Googles query & returns 1st result's URL

  • hubot hangout - sends hangout url

  • hubot md5|sha|sha1|sha256|sha512|rmd160 me string - Generate hash of string

  • hubot show [lines lines of] history - Shows lines of history, otherwise all history

  • hubot clear history - Clears the history

  • hubot lyrics for song by artist - returns snippet of lyrics for this song

  • hubot news - Get the latest headlines

  • hubot news topic - Get the latest headlines for a specific topic

  • hubot be nice - just gives some love :)

  • hubot joke me - Pull a random joke from /r/jokes

  • hubot (bitly|shorten) (me) url - Shorten the URL using bit.ly

  • hubot task add task - Add a task

  • hubot task list tasks - List the tasks

  • hubot task delete task number - Delete a task

  • hubot wat - Random WAT

  • hubot which do you prefer: thing or thing [.. or thing]?

  • hubot !! - Repeat the last command directed at hubot

  • hubot cowsay statement - Returns a cow that says what you want

  • hubot decide "option1" "option2" "optionx" - Randomly picks an option

  • hubot roll dice - Roll two six-sided dice

  • hubot roll xdy - roll x dice, each of which has y sides

  • hubot get directions "origin" "destination" -- Shows directions between these locations

  • Hello or Good Day make hubot say hello to you back

  • Good Morning makes hubot say good morning to you back

  • haters - Returns a random haters gonna hate url

  • beer - replies with random beer quote

  • food - replies with "Mmmm... food"

  • internet - replies with random internet quote

  • try - replies with random try quote

  • zombie | zombies - Call in a zombie

#!/bin/bash
export HUBOT_DIR="$HOME/hubot/" # make sure you don't forget the trailing /
export HUBOT='bin/hubot'
# httpd listen port
export PORT='<61002>' # make sure to use a free port here
# use IRC adapter
export ADAPTER='irc'
# IRC environment variables
export HUBOT_IRC_SERVER="<serveruri>"
export HUBOT_IRC_ROOMS="#<someroom>,#<anotherroom>"
export HUBOT_IRC_NICK="<somename>"
# for additional options see: https://github.com/github/hubot/wiki/Adapter:-IRC#configuring-the-adapter
cd ${HUBOT_DIR}
exec ${HUBOT_DIR}${HUBOT} --adapter ${ADAPTER}
[
"kittens.coffee",
"gob.coffee",
"coin.coffee",
"google.coffee",
"grumpycat.coffee",
"hangout.coffee",
"hashing.coffee",
"haters.coffee",
"hello.coffee",
"history.coffee",
"homer.coffee",
"lyrics.coffee",
"news.coffee",
"nice.coffee",
"reddit-jokes.coffee",
"scotch.coffee",
"bitly.coffee",
"tasks.coffee",
"wat.coffee",
"which-do-you-prefer.coffee",
"zombies.coffee",
"bang-bang.coffee",
"cowsay.coffee",
"decide.coffee",
"dice.coffee",
"directions.coffee"
]
#!/bin/bash
DESTINATION="$HOME/hubot"
#ensure ~/service/ dir
uberspace-setup-svscan
# install coffee-script gobally
npm install -g coffee-script
# download hubot
git clone git://github.com/github/hubot.git hubot_tmp && cd hubot_tmp
npm install
# create hubot
./bin/hubot -c ${DESTINATION}
cd ..
rm -rf ./hubot_tmp
cd ${DESTINATION}
# instal dependencies
npm install --save hubot-irc
npm install
# empty hubot-scripts.json
echo '[]' > hubot-scripts.json
# download hubot service
curl https://gist.github.com/jorinvo/5694910/raw/03a78f712e41585a58b8d94c18340bcd16adaf96/hubot > ~/bin/hubot
# make service executable
chmod +x ~/bin/hubot
#setup uberspace service
uberspace-setup-service hubot ~/bin/hubot
svc -d ~/service/hubot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment