Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void Start () {
- // Add a chat listener.
- TwitchChatClient.singleton.AddChatListener(OnChatMessage);
- TwitchChatClient.singleton.userName = "<Bot Name>";
- TwitchChatClient.singleton.oAuthPassword = "<Oauth (find at: https://twitchapps.com/tmi)>";
- TwitchChatClient.singleton.JoinChannel("<Channel Name>");
- }
- // Update is called once per frame
- public void OnChatMessage(ref TwitchChatMessage msg) {
- if (msg.chatMessagePlainText.ToString().Contains("<Insert Emote Name Here>"))
- {
- //Instantiate();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement