'use strict';

const Bot = require('./bot');

class SmoochApiBot extends Bot {
    constructor(options) {
        super(options);

        this.name = options.name;
        this.avatarUrl = options.avatarUrl;
    }

    say(text) {
        const api = this.store.getApi();
        let message = Object.assign({
            text,
            role: 'appMaker'
        }, {
            name: this.name,
            avatarUrl: this.avatarUrl
        });
        return api.conversations.sendMessage(this.userId, message);
    }
}

module.exports = SmoochApiBot;

@@ -221,16 +221,25 @@
 say(text
+, actions
 ) %7B%0A    
@@ -331,16 +331,46 @@
   text,%0A
+            actions: actions,%0A
         

Add actions argument to say function