Moxtra Sample Hubot
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.idea Changing finance source API Sep 20, 2017
bin
node_modules pushing Nov 29, 2018
scripts
.env
.gitignore pushing Nov 29, 2018
.hubot_history Including Account Link Oct 20, 2017
Procfile pushing Nov 29, 2018
README.md
external-scripts.json
moxtra-sample-hubot-01.zip pushing Nov 29, 2018
package-lock.json Including Account Link Oct 20, 2017
package.json Documentation improvements Dec 1, 2017

README.md

moxtra-sample-hubot

This is a sample of a Hubot using Moxtra's Adapter.

Moxtra-sample-hubot is a chat bot built with Hubot framework. It also uses Moxtra's adapter to connect your Hubot to your Moxtra's account.

Running your moxtra-sample-hubot

Please take a look at the documentation provided on hubot-moxtra github repository. Once you understand how Hubot and the Moxtra's Adapter works you will master this example.

% bin/hubot -a moxtra

What I will find

This is a complete Moxtra Hubot code, here you will find all the necessary code to run your Moxtra Hubot Bot.

In this code you will find examples on how to handle Moxtra's Events:

- "bot_installed"
- "bot_uninstalled"
- Sending text, rich messages and buttons
- Handling Buttons Postback
- Sending Files
- Linking 3rd party accounts using OAuth2

All the Moxtra example code are located in the file Scripts/moxtra-example.coffee.

How to use the examples

After you have your bot running in a public server, using HTTPS protocol, connected to Moxtra and installed in a Moxtra Binder then you can run the following commands in your Binder:

@Moxie Hi
files
meet
link my account
GOOG quote
AAPL summary
DIS chart