'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;

'use strict';

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

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

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

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

module.exports = SmoochApiBot;

Add actions argument to say function
Add actions argument to say function
