• Stars
    star
    111
  • Rank 303,517 (Top 7 %)
  • Language
    Go
  • License
    BSD 3-Clause "New...
  • Created about 11 years ago
  • Updated almost 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A golang package to communicate with HipChat over XMPP

hipchat

This is a abstraction in golang to Hipchat's implementation of XMPP. It communicates over TLS and requires zero knowledge of XML or the XMPP protocol.

bot building

Hipchat treats the "bot" resource differently from any other resource connected to their service. When connecting to Hipchat with a resource of "bot", a chat history will not be sent. Any other resource will receive a chat history.

example/hello.go

package main

import (
	"github.com/daneharrigan/hipchat"
)

func main() {
	user := "11111_22222"
	pass := "secret"
	resource := "bot"
	roomJid := "[email protected]"
	fullName := "Some Bot"

	client, err := hipchat.NewClient(user, pass, resource)
	if err != nil {
		fmt.Printf("client error: %s\n", err)
		return
	}

	client.Status("chat")
	client.Join(roomJid, fullName)
	client.Say(roomJid, fullName, "Hello")
	select {}
}

More Repositories

1

liquify

Liquify is a wrapper to Liquid Markup to make it easier to use.
Ruby
8
star
2

magnetism

[DEAD] A Website CMS
Ruby
6
star
3

sinatra-base

A preconfigured Sinatra app with: Sinatra::Contrib, Haml, Sass, Compass and CoffeeScript
Ruby
6
star
4

heroku-alias

Add command aliases to the Heroku CLI
Ruby
5
star
5

bourbon

Go
5
star
6

gasoline

Go
3
star
7

cerubis

Secure Markup
Ruby
3
star
8

serialize

Object serialization
Ruby
3
star
9

GitEasy

[DEAD] Just a wrapper to some common git processes
Ruby
2
star
10

lily

A JavaScript testing framework
JavaScript
2
star
11

current_object

Give any class a notion of what its current instance is.
Ruby
2
star
12

cgc

Go
2
star
13

validate_me

[DEAD] jQuery form validation helpers. Mimics the validates methods of Rails
JavaScript
2
star
14

adb

Collection of muscle groups, muscles, and areas of a muscle that can be targeted
Go
2
star
15

thread_so_safe

[DEAD] thread_so_safe is a very simple gem to help keep multi-threaded environments synced.
Ruby
2
star
16

respond_with

Making API responses hella simple
Ruby
2
star
17

project-euler

My code for projecteuler.net
Ruby
1
star
18

presentations

Example code used in presentations
Shell
1
star
19

jest

JSON in/out REST API in Go
Go
1
star
20

magnetism-textile

Adds Textile support to the Magnetism CMS
Ruby
1
star
21

histogram.go

Go
1
star
22

geordi

An experimental key-value store in Go
Go
1
star
23

challenge_response

[DEAD] A Rails plugin to handle challenge responses. A more human approach to confirm the user is a human.
Ruby
1
star
24

like_a_boss

The only gem you need to code Ruby like a boss
Ruby
1
star
25

canvas-experiments

JavaScript
1
star
26

mci

marvel comics informer
Go
1
star
27

magnetism-core

The primary codebase of the Magnetism CMS
Ruby
1
star
28

sassy

A proof of concept to remove the Ruby dependency from designers wanting to use Sass and Compass.
JavaScript
1
star
29

magnetism-markdown

Adds Markdown support to the Magnetism CMS
Ruby
1
star
30

daneharrigan.github.io

http://daneharrigan.github.com
HTML
1
star
31

histogram.rb

Ruby
1
star
32

magnetism-views

The primary views/assets of the Magnetism CMS
1
star
33

streamers

Concept: A distributed worker queue over HTTP
Go
1
star
34

layout_options

A single source for defining layouts in a controller
Ruby
1
star