Basic Math

13 views
Skip to first unread message

Emily ChatBot

unread,
Feb 21, 2014, 5:37:36 PM2/21/14
to xmpp-b...@googlegroups.com
How would I go about getting Blather Chat Bot to do basic math?

Example:

User: 2 + 2
ChatBoy: 4

Ben Langfeld

unread,
Feb 24, 2014, 6:07:21 AM2/24/14
to xmpp-b...@googlegroups.com
You would have to somehow parse the received message string, calculate the appropriate response, and send a reply message. The parsing of the body and calculation of the response are general Ruby/programming questions, and I suspect Stack Overflow would be a better venue for that.


--
You received this message because you are subscribed to the Google Groups "Blather" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xmpp-blather...@googlegroups.com.
To post to this group, send email to xmpp-b...@googlegroups.com.
Visit this group at http://groups.google.com/group/xmpp-blather.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages