@Nicolas I took your advice and un-installed your plugin. Deleted the twitch database entries and then installed and configured the plugin again. Alas, just as before I had a "crash" and re-start (3 times). This is the output of the initial crash that began the cycle (after removing the plugin, database entries delete, etc.):
30/8 16:42 [29744] - info: [plugins/twitch-monitor] Start monitoring of channels, delay is 30000 ms
30/8 17:46 [29744] - error: TypeError: Cannot call method 'forEach' of undefined
at /usr/share/nodebb/PROD/node_modules/nodebb-plugin-ns-twitch-monitor/plugin/twitch/api.js:74:37
at transform (/usr/share/nodebb/PROD/node_modules/nodebb-plugin-ns-twitch-monitor/plugin/twitch/api.js:89:25)
at /usr/share/nodebb/PROD/node_modules/nodebb-plugin-ns-twitch-monitor/plugin/twitch/api.js:72:35
at fn (/usr/share/nodebb/PROD/node_modules/async/lib/async.js:746:34)
at /usr/share/nodebb/PROD/node_modules/async/lib/async.js:1213:16
at /usr/share/nodebb/PROD/node_modules/async/lib/async.js:166:37
at /usr/share/nodebb/PROD/node_modules/async/lib/async.js:706:43
at /usr/share/nodebb/PROD/node_modules/async/lib/async.js:167:37
at /usr/share/nodebb/PROD/node_modules/async/lib/async.js:1209:30
at /usr/share/nodebb/PROD/node_modules/nodebb-plugin-ns-twitch-monitor/plugin/twitch/api.js:48:13
TypeError: Cannot call method 'forEach' of undefined
at /usr/share/nodebb/PROD/node_modules/nodebb-plugin-ns-twitch-monitor/plugin/twitch/api.js:74:37
at transform (/usr/share/nodebb/PROD/node_modules/nodebb-plugin-ns-twitch-monitor/plugin/twitch/api.js:89:25)
at /usr/share/nodebb/PROD/node_modules/nodebb-plugin-ns-twitch-monitor/plugin/twitch/api.js:72:35
at fn (/usr/share/nodebb/PROD/node_modules/async/lib/async.js:746:34)
at /usr/share/nodebb/PROD/node_modules/async/lib/async.js:1213:16
at /usr/share/nodebb/PROD/node_modules/async/lib/async.js:166:37
at /usr/share/nodebb/PROD/node_modules/async/lib/async.js:706:43
at /usr/share/nodebb/PROD/node_modules/async/lib/async.js:167:37
at /usr/share/nodebb/PROD/node_modules/async/lib/async.js:1209:30
at /usr/share/nodebb/PROD/node_modules/nodebb-plugin-ns-twitch-monitor/plugin/twitch/api.js:48:13
30/8 17:46 [29744] - info: [app] Shutdown (SIGTERM/SIGINT) Initialised.
30/8 17:46 [29744] - info: [app] Database connection closed.
30/8 17:46 [29744] - info: [app] Web server closed to connections.
30/8 17:46 [29744] - info: [app] Shutdown complete.
[cluster] Child Process (29744) has exited (code: 1, signal: null)
[cluster] Spinning up another process...
30/8 17:46 [30161] - info: Time: Tue Aug 30 2016 17:46:03 GMT-0600 (MDT)
If you would like additional information, such as my subscribed channels, etc., I will gladly provide it.
I do like this plugin and hope you will be able to find whatever it is that makes it unstable at times.
I am running NodeBB v1.0.2
and nodebb-plugin-ns-twitch-monitor 3.0.4