Skip to content

Instantly share code, notes, and snippets.

@skooch
Created May 2, 2016 03:50
Show Gist options
  • Save skooch/bf63955feffbc588bceb2dd277c33798 to your computer and use it in GitHub Desktop.
Save skooch/bf63955feffbc588bceb2dd277c33798 to your computer and use it in GitHub Desktop.
#!/bin/sh
# connect to bitlbee, create an account with register $password
# Then invoke this with something like /exec -o /full/path/to/script.sh
id=27031
conf_server=conf.hipchat.com
chat_server=chat.hipchat.com
# Begin settings that need tweaking
# Fetch most of these from https://99designs.hipchat.com/account/xmpp
username=27031_166081 # Username, should be xxxx_xxxxx
password=eig3UvahGhie4qu # Hipchat password
channels="99designs dev juici foundation"
nick="agent 99" # Full name as hipchat sees it, important that it's right.
# end settings that need tweaking
echo "account add jabber ${username}@${chat_server} '${password}'"
echo "account 0 set tag hipchat"
echo "account hipchat set resource bot"
echo "account hipchat set nick_source full_name"
echo "account hipchat on"
for channel in $channels; do
echo "chat add hipchat ${id}_${channel}@$conf_server #$channel"
echo "channel #$channel set nick '${nick}'"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment