Project

rebot

0.01
No commit activity in last 3 years
No release in over 3 years
Framework for building bot applications
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.10
~> 10.0
>= 0

Runtime

 Project Readme

Rebot

Rebot is a framework for building bots application. Rebot was extracted from brobot.io and inspired by awesome node.js botkit library and ruby slack-bot-server.

Getting started

Create new app

$ gem install rebot
$ rebot new my_bot

Create new slack bot integration at http://slack.com/services and copy token.

$ cd my_bot
$ TOKENS=token-your-copied-from-slack ./server

Text hi to your new bot.

Usage

Rebot uses conversations to enable developers create complex text interactions.

hears /^(hi|hello)/i do
  start_conversation do
    say "Hi!"
    say "How are you doing?"
    say "Do you have any plans for a weekend?"
    
    hears yes do
      say "Nice! Hope you have a great weekend!"
    end
    
    hears no do
      say "Oh! Do you want to play with `rebot` framework?"
      say "Check it out at https://github.com/keydunov/rebot"
    end
  end
end

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/rebot. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

The gem is available as open source under the terms of the MIT License.