Skip to content

Commit

Permalink
Update callHandler.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Austin Huang authored Apr 23, 2018
1 parent b42d74a commit 61ec7d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/callHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ module.exports = async(client, message, callDocument) => {
await callDocument.save();
var rem = setInterval(async() => {
callDocument = await Calls.findOne({ _id: callDocument._id });
if (!callDocument || Date.now() - callDocument.lastReminder < 295000) clearInterval(rem);
if (!callDocument || Date.now() - callDocument.lastReminder < 299999) clearInterval(rem);
else {
client.apiSend(":bulb: Reminder: You still have an ongoing call ("+callDocument._id+"). You can type `>hangup` to end it.", callDocument.from.channelID);
client.apiSend(":bulb: Reminder: You still have an ongoing call ("+callDocument._id+"). You can type `>hangup` to end it.", callDocument.to.channelID);
Expand Down

0 comments on commit 61ec7d2

Please sign in to comment.