You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now the bot crashes on almost any error that occurs. I have a !exec command up that handles executing PHP code (only by me), but I have to triple-check my code because the bot will crash if anything is wrong with it.
Possibly the main loop could be wrapped in a try {} catch {exception} statement, but that won't catch everything. To add proper error handling the bot'll need a custom error handler like described here: http://php.net/manual/en/function.set-error-handler.php
The text was updated successfully, but these errors were encountered:
Right now the bot crashes on almost any error that occurs. I have a !exec command up that handles executing PHP code (only by me), but I have to triple-check my code because the bot will crash if anything is wrong with it.
Possibly the main loop could be wrapped in a try {} catch {exception} statement, but that won't catch everything. To add proper error handling the bot'll need a custom error handler like described here: http://php.net/manual/en/function.set-error-handler.php
The text was updated successfully, but these errors were encountered: