You can use this as the basis for building a Webex Bot
Add the dependency to your shard.yml
:
dependencies:
webex:
github: place-labs/webex
You'll need a developers account at cisco and then do the following:
- ...
- ...
Configure the client:
require "webex"
Cisco::Webex::Client.new(...)
Webex sends message metadata as they come in. You can subscribe to them by doing the following:
If you are interested in the message you can request the message contents by doing:
Then you can respond to a message: