Yobot is an extensible campfire bot. You can ask and tell it all kinds of things.
set ENV['CAMPFIRE_LOGIN'], ENV['CAMPFIRE_PASSWORD'] and ENV['CAMPFIRE_SUBDOMAIN] to a valid campfire account/site.
To start just run rake run
Behaviors live in lib/yobot/behaviors. A behavior consists of at least one class that implements the following interface:
class MyBehavior
# reacts to a message in a chatroom (or not)
# room - a Firering::Room
# message - a text message written in the room (String)
def react(room, message)
end
# returns a short description string that explains how to use this behavior
def description
end
end
Behaviors should read all the configuration they need (e.g. API credentials) from ENV.
ping
-pong
dict <word>
- prints out the translation from google translateanaveda
- prints out today's lunch menu from anaveda.de
bvg <from> to <to>
- prints out the next train from A to B via bvg.de (Berlin)weather <city>
- prints the weather forecastremind me 20:00 <title>
- will print out a reminder at the given timehelp
- returns a list of commandstweet <message>
- sends a message to twittertoday
- prints out today's events from a calendarshop <item>
- adds an item to the shopping listshopping list
- prints out the shopping listclear shopping list
- clears the shopping listshopped <item>
- removes all items that start with the string from the shopping listnews
- prints out the latest news from a list of RSS feeds, does not print the same item twicemovies
- prints out which movies are on tonight at cinestar potsdamer platz berlin