root@aeronus-webserver:/var/www/html/bot# php -f bot.php 29-12-2019 01:24:18 - nebucordws.nebulatien.org - info | Starting Nebucord v. 0.8.2 on nebucordws.nebulatien.org 29-12-2019 01:24:18 - nebucordws.nebulatien.org - info | Starting HTTP client... 29-12-2019 01:24:18 - nebucordws.nebulatien.org - info | Eventtable set... 29-12-2019 01:24:18 - nebucordws.nebulatien.org - info | No actiontable set, using default one... 29-12-2019 01:24:18 - nebucordws.nebulatien.org - info | Connecting to Discord WebSocket gateway... 29-12-2019 01:24:18 - nebucordws.nebulatien.org - info | WebSocket connection established. 29-12-2019 01:24:18 - nebucordws.nebulatien.org - info | Nebucord set up, entering main loop... 29-12-2019 01:24:18 - nebucordws.nebulatien.org - info | Event received: READY - Sequence: 1 PHP Notice: Undefined index: ctrlusr in /var/www/html/bot/vendor/eurobertics/nebucord/src/Controller/Nebucord_RuntimeController.php on line 272 29-12-2019 01:24:18 - nebucordws.nebulatien.org - info | Event received: - Sequence: 29-12-2019 01:24:18 - nebucordws.nebulatien.org - warn | Creating default model, no appropriate model for event found. PHP Notice: Undefined offset: 0 in /var/www/html/bot/vendor/eurobertics/nebucord/src/Controller/Nebucord_EventController.php on line 135 PHP Notice: Undefined offset: 0 in /var/www/html/bot/vendor/eurobertics/nebucord/src/Controller/Nebucord_EventController.php on line 135 PHP Warning: call_user_func() expects parameter 1 to be a valid callback, first array member is not a valid class name or object in /var/www/html/ bot/vendor/eurobertics/nebucord/src/Controller/Nebucord_EventController.php on line 135 29-12-2019 01:24:18 - nebucordws.nebulatien.org - info | Event received: - Sequence:
Not all servers run on apache, and /var/log/apache2 is not always an appropriate place for log files. If the directory doesn't exist, the program crashes Nebucord_Logger should take a log directory as a parameter.
I'm the maintainer of a PHP game chatbot named Bebot (forum @ bebot.shadow-realm.org) and i'm considering Nebucord as an API source candidate for a Discord module i'm planning soon.
But the problem is once i included Nebucord as a module and initiated its connection (bootstrap->run), my chatbot is 100% busy on the Nebucord websocket and doesn't respond anything else.
Would you see a flexible way to include Nebucord as child process while keeping the main thread available for other chatbot tasks ? I've been thinking of using PHP 7 pthreads but it would require full reinstall ...