Make simple bots with ruby.
gem install ibot
- Create new bot
bot = IBot.new('mybot')
- Create some group
bot.add_group 'greeting'
bot.add_group 'goodby'
- Define some patterns for each group
bot.add_pattern 'greeting', /hi/i
bot.add_pattern 'greeting', /hello/i
- Define some response for each group
bot.add_response 'greeting', 'Hello.'
bot.add_response 'greeting', 'Holla.'
- Response to text
bot.response bot.text_group 'Hello, world!'
Dariush Abbasi < @dariubs >
MIT