P
P
pixal2016-04-27 20:15:04
ruby
pixal, 2016-04-27 20:15:04

Telegram bot stops working within 10 minutes after launch. How to fix it?

Hello! I wrote a bot in Ruby, registered it for autoloading in the rc.local file, on Raspberry pi (Raspbian OS). When running the raspberry, the bot works just fine, but after a while it stops working. Raspberry needs to be restarted. Please tell me how to fix this?
Wrote on this article www.sitepoint.com/quickly-create-a-telegram-bot-in-ruby

Answer the question

In order to leave comments, you need to log in

2 answer(s)
B
Befomet, 2016-04-27
@Befomet

You need to add a
loop do
...
end loop

R
Roman Mirilaczvili, 2016-04-27
@2ord

At a minimum, you need to find out the cause by looking at the system log. Trite, there may not be enough memory due to uneconomical consumption.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question