Skip to content

Instantly share code, notes, and snippets.

@Naktibalda
Created September 6, 2017 15:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Naktibalda/3aa40e76b1dfaf55196a8a81a4edeaf3 to your computer and use it in GitHub Desktop.
Save Naktibalda/3aa40e76b1dfaf55196a8a81a4edeaf3 to your computer and use it in GitHub Desktop.
Setting up testmybot
var env = require('node-env-file');
env(__dirname + '/../.env');
const botkitHelper = require('@naktibalda/testmybot/helper/botkit');
const mochaHelper = require('@naktibalda/testmybot/helper/mocha');
const Botkit = require('botkit');
const bot = require('../build/bot.js').default;
const controller = Botkit.facebookbot({access_token: 'test', verify_token: 'test'});
bot(controller);
botkitHelper.wireWithBotkit(function() {
controller.memory_store.users = {};
return controller;
});
mochaHelper.setupMochaTestSuite(60000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment