tmijs / tmi.js

💬 Javascript library for the Twitch Messaging Interface. (Twitch.tv)
https://tmijs.com
MIT License
1.55k stars 215 forks source link

Make bot use a name that I choose? #337

Closed codewithtyler closed 5 years ago

codewithtyler commented 5 years ago

I tried updating the username in the identity object to he something other than my Twitch username but when the bot responds it just uses my Twitch username. Is there a way to get it to use a name that I choose?

AlcaDesign commented 5 years ago

You have to create the account for the username that you want. The OAuth token is tied to a user with a name.

mphelp commented 4 years ago

@AlcaDesign This tripped me up too! Glad I found this thread. I think it would be valuable to include this information (that the OAuth is tied to the BOT USER not the channel user in the README). Sending you a small PR

mphelp commented 4 years ago

@AlcaDesign Actually, I spoke too soon. Your README clearly says bot token in the identity configuration. Your documentation was right all along! I was following this: https://dev.twitch.tv/docs/irc And I think I misunderstood whether the token belonged to channel owner or the bot. I'm all good now. Thanks for this package!