I rolled out the bot to herroku, connected it to the portage sql database, everything worked, after 2 days I stopped connecting to it with an error:
line 127,