This is a Facebook Messenger Bot written in Ruby with the help of Sinatra.
#How to Use
-
Prepare your facebook messanger platform at https://developers.facebook.com/docs/messenger-platform
-
Install required gems
$ gem install
-
Run the bot
$ PAGE_TOKEN=<PAGE_TOKEN> VERIFY_TOKEN=<YOUR_VERIFY_TOKEN> CHAT_BOT_ID=<CHAT_BOT_ID> ruby bot.rb
PAGE_TOKEN : Like a password which we can see on the facebook developper page.
VERIFY_TOKEN: An arbitrary keyword which we can creat on the facebook developer page.
CHAT_BOT_ID : Equals a facebook page id which we can see on the facebook page. -
Test the bot
Say something like "test aaa", "test bbb", "test ccc", "test ddd" whose comments are for test scenario.