Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (twitch object)
- (create event)
- ///twitch
- irc_create_socket("irc.twitch.tv",6667,"accountname","oauthkey","channelname",true)
- (networking event)
- ///twitch
- ini_open("save.ini");
- if(irc_handle_networking() == "message"){
- //"msg" : Contains the message the user sent
- //"sender" : Stores the username of the user
- //load sender info
- //message
- msg = string_lower(msg);
- if(msg == "help"){
- irc_send_message(sender+" wants help!");
- }
- }
- else if(irc_handle_networking() == "whisper"){
- //whispers
- msg = string_lower(msg);
- if(msg == "help"){
- irc_send_message("Shh, this is a whisper");
- }
- }
- ini_close();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement