Skip to content

Commit

Permalink
fix setinterval
Browse files Browse the repository at this point in the history
  • Loading branch information
karyeet committed Mar 21, 2022
1 parent 1599832 commit d2de06f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function startLavalink() {
console.log("Checking if APP_NAME is specified...")
if(process.env.APP_NAME){
console.log("I will visit myself every 20 minutes because APP_NAME specified!");
setInterval(keepAlive(process.env.APP_NAME), 20*60*1000);
setInterval(keepAlive, 20*60*1000, process.env.APP_NAME);
}else{
console.log("I will not visit myself every 20 minutes, APP_NAME is not specified!")
console.log("If this is a free dyno, Heroku will make this project sleep after 30 minutes unless there is http activity.")
Expand Down

0 comments on commit d2de06f

Please sign in to comment.