calledtoconstruct / lambdabot

A friendly IRC bot and apprentice coder, written in Haskell.
4 stars 2 forks source link

Figure out how Twitch sends "whispers" or private messages. #19

Closed calledtoconstruct closed 4 years ago

calledtoconstruct commented 4 years ago

Currently, PRIVMSG is used within the channel, so it works differently than IRC, I believe.

Andrewnetwork commented 4 years ago

May not be possible, see: https://discuss.dev.twitch.tv/t/private-message-api-support/9483/5

Andrewnetwork commented 4 years ago

It's possible to to send whispers to users, but not to receive them as a bot. Twitch uses/w <user> <message> to send whispers, but that lies outside IRC. There is currently no API available to access your private messages. The only solution, it seems, would be to have a headless browser login to twitch as the bot and grab the messages through the web UI.

Edit: It is not possible to do through IRC, but there is another API for this. See #22 .