GithubHelp home page GithubHelp logo

yobot's Introduction

Yobot

Yobot is an extensible campfire bot. You can ask and tell it all kinds of things.

Installation

set ENV['CAMPFIRE_LOGIN'], ENV['CAMPFIRE_PASSWORD'] and ENV['CAMPFIRE_SUBDOMAIN] to a valid campfire account/site.

To start just run rake run

Behaviors

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.

Built-In behaviors

Working

  • yo ping - pong
  • yo translate <word> - prints out the translation from google translate
  • yo anaveda - prints out today's lunch menu from anaveda.de
  • yo sunset / yo sunrise - prints out today's sunrise/sunset time

Planned

  • bvg <from> to <to> - prints out the next train from A to B via bvg.de (Berlin)
  • weather <city> - prints the weather forecast
  • remind me 20:00 <title> - will print out a reminder at the given time
  • help - returns a list of commands
  • tweet <message> - sends a message to twitter
  • today - prints out today's events from a calendar
  • shop <item> - adds an item to the shopping list
  • shopping list - prints out the shopping list
  • clear shopping list - clears the shopping list
  • shopped <item> - removes all items that start with the string from the shopping list
  • news - prints out the latest news from a list of RSS feeds, does not print the same item twice
  • movies - prints out which movies are on tonight at cinestar potsdamer platz berlin

yobot's People

Contributors

langalex avatar jed avatar roidrage avatar nathanvda avatar

Stargazers

 avatar

Watchers

 avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.