Advertisement
Guest User

Untitled

a guest
Apr 26th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. (twitch object)
  2. (create event)
  3. ///twitch
  4. irc_create_socket("irc.twitch.tv",6667,"accountname","oauthkey","channelname",true)
  5. (networking event)
  6. ///twitch
  7. ini_open("save.ini");
  8. if(irc_handle_networking() == "message"){
  9. //"msg" : Contains the message the user sent
  10. //"sender" : Stores the username of the user
  11. //load sender info
  12. //message
  13. msg = string_lower(msg);
  14. if(msg == "help"){
  15. irc_send_message(sender+" wants help!");
  16. }
  17. }
  18. else if(irc_handle_networking() == "whisper"){
  19. //whispers
  20. msg = string_lower(msg);
  21. if(msg == "help"){
  22. irc_send_message("Shh, this is a whisper");
  23. }
  24. }
  25. ini_close();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement