Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
4.2k views
in Technique[技术] by (71.8m points)

GroupMe bot (node.js) using LocalTunnel for Callback URL. LocalTunnel URL times out after ~6 hours. What can I do to make my bot run 24/7?

(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!


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...