简体   繁体   English

谷歌云平台禁用机器人

[英]Google cloud platform disables the bot

I signed up for Google cloud platform added a card and got 300$ for free for 3 months.我注册了谷歌云平台并添加了一张卡,并免费获得了 3 个月的 300 美元。 I uploaded my bot there using the app engine and got a link to access it.我使用应用引擎将我的机器人上传到那里,并获得了访问它的链接。 when I click on it and then close it, the bot works and responds to all my messages.当我点击它然后关闭它时,机器人会工作并回复我的所有消息。 But after a while it stops working again until I click on the link provided by google.但过了一会儿它再次停止工作,直到我点击谷歌提供的链接。 What might be the problem?可能是什么问题? Is there any way to fix this?有没有什么办法解决这一问题? Please tell me how I can configure everything correctly so that my bot is not disabled.请告诉我如何正确配置所有内容,以便不禁用我的机器人。 Maybe there are other free services?也许还有其他免费服务? Thank you in advance先感谢您

It is because if app engine does not receive any requests it stops, it depends on your app engine settings when it sleeps, you can create 2 app engine servers and make them sending GET requests to each other so they will not sleep, this is what i did and it worked fine这是因为如果 App Engine 没有收到任何请求它就会停止,这取决于您的 App Engine 休眠设置,您可以创建 2 个 App Engine 服务器并让它们相互发送 GET 请求,这样它们就不会休眠,这就是我做到了,效果很好

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM