Created
September 6, 2017 15:44
-
-
Save Naktibalda/3aa40e76b1dfaf55196a8a81a4edeaf3 to your computer and use it in GitHub Desktop.
Setting up testmybot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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