I got the error message as above.
bot.js is a just tutorial code with my oauth token.
What is the problem?
The example code is outdated to some degree.
The example code uses tmi.js you may want to refer to the tmi.js documentation for further help