Thread:KockaAdmiralac/@comment-26921625-20170601000110/@comment-27345308-20170610203834

Hm. Now that I look at it, it's pretty clear what's happening... Wikia chat is sending 400 (Bad Request) and 503 (Backend fetch failed) HTTP errors randomly. The easiest way to solve it is to replace your main.rb with which should basically make the bot enter every time it exits... unless it crashes during booting (during database lockdowns, for example).