Need some help with Ubuntu, Node, and tmi.js

For some reason you can’t connect to server, and when your script got error, then you got crash of script.
add this code in your script and you will know what happens

process.on('unhandledRejection', (reason, p) => {
  console.log('Unhandled Rejection at: Promise', p, 'reason:', reason);
})
1 Like