Project

ibot

0.0
No commit activity in last 3 years
No release in over 3 years
A simple library for creating bots in ruby.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

~> 3.4.0
 Project Readme

iBot Build Status

Make simple bots with ruby.

Install

gem install ibot

Usage

  1. Create new bot
bot = IBot.new('mybot')
  1. Create some group
bot.add_group 'greeting'
bot.add_group 'goodby'
  1. Define some patterns for each group
bot.add_pattern 'greeting', /hi/i
bot.add_pattern 'greeting', /hello/i
  1. Define some response for each group
bot.add_response 'greeting', 'Hello.'
bot.add_response 'greeting', 'Holla.'
  1. Response to text
bot.response bot.text_group 'Hello, world!'

This example gist

Author

Dariush Abbasi < @dariubs >

License

MIT