Advertisement
Guest User

Untitled

a guest
Jan 13th, 2018
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. void Start () {
  2. // Add a chat listener.
  3. TwitchChatClient.singleton.AddChatListener(OnChatMessage);
  4.  
  5. TwitchChatClient.singleton.userName = "<Bot Name>";
  6. TwitchChatClient.singleton.oAuthPassword = "<Oauth (find at: https://twitchapps.com/tmi)>";
  7.  
  8. TwitchChatClient.singleton.JoinChannel("<Channel Name>");
  9. }
  10.  
  11. // Update is called once per frame
  12. public void OnChatMessage(ref TwitchChatMessage msg) {
  13. if (msg.chatMessagePlainText.ToString().Contains("<Insert Emote Name Here>"))
  14. {
  15. //Instantiate();
  16. }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement