Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

(Prefacing this by saying that I am a newbie)

So we have a bot for our group chat. The bot is written in node.js. The code files are on my local computer, and I make the bot "live" via the command "npm run dev" in command prompt, which puts the code on a LocalTunnel URL that I define. I then need to put this URL in the GroupMe Dev site as the "Callback URL" for my bot for everything to work.

The issue is that the LocalTunnel seems to time out after 12 hours or so, and then the bot stops working (e.g. we say a !command that the bot would usually respond to, and it does not respond). As I look into LocalTunnel, I am realizing that it is supposed to be used for short-term things like debugging-- I was not aware of that bc I am a newbie). So my question is, what can I do to turn this bot into something I can turn on and leave on indefinitely? I don't know whether the solution would be entirely local, or if it would involve hosting it on some sort of website/service, or what. If it helps, I have no problem leaving my computer on 24/7 if I can host locally. (Note: this is just for fun so I am really not looking for solutions that involve spending money)

Anyway, thanks in advance for any help!


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
3.8k views
Welcome To Ask or Share your Answers For Others

1 Answer

等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...