Skip to content
/ flint Public

Flint is a simple Campfire client heavily inspired by the blather gem

Notifications You must be signed in to change notification settings

vanstee/flint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flint

A simple Campfire client heavily inspired by the blather gem https://github.com/sprsquish/blather.

Example

You'll need your campfire token, an account name and a room id. They should look something like this.

Token: 92e7c01a6de100b1d4cab81d7fbfa8a2536939ab

Account: tasty-taco-talk

Room ID: 100000

Now write this up and run it.

require 'rubygems'
require 'flint'

setup '92e7c01a6de100b1d4cab81d7fbfa8a2536939ab', 'tasty-taco-talk', '100000'

ready do
  say 'All hail your taco robot overlord!!!'
end

message :body => /tacos/ do
  say 'BOOM!!! TACOTIME!!!'
end

friday_tacos = lambda do |message|
  message =~ /tacos/ and Date.today.friday?
end

message :body => friday_tacos do
  say 'WOO! TAQUERIA DEL SOL!'
end

Reference

Campfire http://campfirenow.com/

Campfire API http://developer.37signals.com/campfire/

Blather https://github.com/sprsquish/blather

About

Flint is a simple Campfire client heavily inspired by the blather gem

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages