Ask coding questions

← Back to all posts
I had Whatsapp bot and after sometimes I found it at the start of the file again
h
shirser121 (1)

I had a WhatsApp bot and after sometimes I found it at the start of the file again, I don't know what to do.
If you have a WhatsApp bot, did it run all the time without disconnecting? If so, how do you do it?

Comments
hotnewtop
DavidSafro (19)

The problem with repl.it is that the team can not afford to keep all the code running constantly as that would be too expensive and would take to much bandwidth. The team at repl.it created an algorithm that only imitates your repl to always work but in reality when you are inactive for some time, it stops. There are 2 possible solutions. One buy the hacker plan which has the option to have 5 repls that are always on no matter what. Even after you exit the browser. This is the more reliable way but you could also ping your repl every few minutes or so so that it will be on. This will be more laggy and may not always work but at least its free.

shirser121 (1)

@DavidSafro
I already have the Hacker plan and it's still happening