Advertisement
OrFeAsGr

Untitled

Sep 29th, 2017
288
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 0.53 KB | None | 0 0
  1. on *:SOCKOPEN:*: {
  2. if ($sockname == Lyrics) {
  3. sockwrite -nt $sockname GET /quotes.json HTTP/1.1
  4. sockwrite -nt $sockname Host: got-quotes.herokuapp.com
  5. sockwrite -nt $sockname User-Agent: Mozilla/4.0
  6. sockwrite -nt $sockname Connection: Close
  7. sockwrite $sockname $crlf
  8. }
  9. }
  10.  
  11. on *:SOCKREAD:GOT: {
  12. var %x
  13. sockread %x
  14. echo -at > %x
  15. }
  16.  
  17. ON *:SOCKCLOSE:GOT: {
  18. var %x
  19. while ($sockbr) {
  20. var %y
  21. sockread -f %y
  22. echo -at >>> %y
  23. }
  24. sockread %x
  25. echo -at >> %x
  26. }
  27.  
  28. ON *:TEXT:!GOT: {
  29. sockopen -e GOT got-quotes.herokuapp.com 443
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement