Bot to Whisper when followed or subscribed

  1. Don’t do this, it’s an unsolicited Whisper.
  2. Whispers will fail when you are sending a bot without being a “known bot”
  1. What is the actual error message you are getting?

I see you are using TMI.js

Cluster: ‘aws’

Is no longer required. And based on an old example.

There is no whisper code in your code, I don’t see anything you have tried, this looks like the example code from the tmi.js help/starter Docs

I can lead you to the answer but I won’t give you the answer

If you really wanna whisper new followers (which I don’t recommend), best method would be to use webhooks to recieve new follows

https://dev.twitch.tv/docs/api/webhooks-guide/

And you’ll need adequate protection in place to make sure you don’t try to whisper the same person twice in a defined time frame, some people like to unfollow/refollow to see their name in your follow notifier.

Twitch IRC usernotice covers subscriptions

And whispers are just a PRIVMSG .w target