Each bot needs its own API key for tracking.
Create a bot to get an API key.
npm install --save dashbot
Use the API key created above.
const dashbot = require('dashbot')(<strong>process.env.DASHBOT_API_KEY</strong>).kik;
Pass the bot handle created with the Kik npm module to Dashbot.
const Bot = require('@kikinteractive/kik');
const bot = new Bot({
username: process.env.KIK_USERNAME,
apiKey: process.env.KIK_API_KEY,
baseUrl: process.env.KIK_WEBHOOK_URL
});
bot.updateBotConfiguration();
<strong>dashbot.configHandler(bot);
bot.use(dashbot.logHandler);</strong>
View sample code for a Kik Bot.