Project

sps_bot

0.0
No commit activity in last 3 years
No release in over 3 years
The sps_bot gem allows you to chat with your very own bot through the sps_chat gem.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 0.2.0, ~> 0.2
~> 0.2, >= 0.2.3
 Project Readme

Introducing the sps_bot gem

To chat with my SPS bot I did 2 things. First of all I ran the SPS bot in 1 IRB session as shown below:

require 'sps_bot'

bot = SpsBot.new host: 'sps', port: '59000'

Then I ran another IRB session and began to chat with the bot:

require 'sps_chat'

chat = SPSChat.new host: 'sps', port: '59000', userid: 'James'
chat.send 'hello?'
bot: hello James, how can I help you?
chat. send "what's the time?"
bot: The time is 11:51PM

Resources

spsbot sps_bot chat chatbot