Please provide code snippet or steps to use botkit CMS tool in botkit web code. as of now we running botkit CMS from source
https://github.com/howdyai/botkit-cms
I am not able to use this code in bot.js (web)
controller.use(new BotkitCMSHelper({
uri: process.env.CMS_URI,
token: process.env.CMS_TOKEN
}));
// use the cms to test remote triggers
controller.on('message', async(bot, message) => {
await controller.plugins.cms.testTrigger(bot, message);
});
Any help appreciated !