Need help with tmi.js errors

Check out the TMI.js documentation here:
https://docs.tmijs.org/v1.2.1/Commands.html#say

twitchBot.say(twitchChannel, "message").then(function(data) {
    console.log(data);
}).catch(function(err) {
    console.log(err);
});

Also that say method might fire too early, before you client has successfully logged in.
Try placing it inside the connection event.

https://docs.tmijs.org/v1.2.1/Events.html#logon