Skip to content

Commit

Permalink
fixed function call name
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinleiba committed Apr 14, 2021
1 parent f0d6141 commit 103840d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 6,14 @@ const schedule = require("node-schedule");

const controller = Botkit.slackbot(config.controller);
const bot = controller.spawn({
token: config.token
token: config.token,
});

const startRTM = () => {
bot.startRTM((err, _bot, _payload) => {
if (err) {
console.log(err);
return setTimeout(start_rtm, 60000);
return setTimeout(startRTM, 60000);
} else {
console.log("Ready to taco !");
taco.init();
Expand All @@ -22,8 22,8 @@ const startRTM = () => {
});
};

controller.on("rtm_close", function(_bot, _err) {
start_rtm();
controller.on("rtm_close", function (_bot, _err) {
startRTM();
});

startRTM();
Expand Down

0 comments on commit 103840d

Please sign in to comment.