Advertisement
H0LLYWOOD

newfml

Mar 4th, 2015
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.81 KB | None | 0 0
  1. on *:sockopen:fml-:{
  2. tokenize 94 $sock(fml-).mark
  3. if $sockerr { $5 Connection Error has Persisted! | return }
  4. $1-2 | $1 $3 | $1 $4 | $1
  5. }
  6. on *:sockread:fml-:{
  7. tokenize 94 $sock(fml-).mark
  8. if $sockerr { $5 Reading Error has Persisted! | return }
  9. var %fml | sockread %fml
  10. if $regex(%fml,/(Today.*?)FML<\/a>/i) {
  11. $5 $regsubex($regml(1),/<[^>]*>|&quot;/g,) 14[4 $+ FML $+ 14]
  12. sockclose fml-
  13. }
  14. }
  15. on *:text:$($iif(!fml = $strip($1),$1)):*:{
  16. if !%ffml { inc -u3 %ffml | set -u3 %fml- $+(fml,.,$ticks,.)
  17. if $sock(fml-) { sockclose $v1 }
  18. sockopen fml- www.fmylife.com 80
  19. sockmark fml- $+(sockwrite -nt fml-,^,$&
  20. GET /random HTTP/1.0,^,Host: $sock(fml-).addr,$&
  21. ^,Connection: close,^,.msg $iif(#,#,$nick)) 14,1[4Fuck My Life14]15
  22. }
  23. }
  24.  
  25. alias timerfml {
  26. if !%ffml { inc -u3 %ffml | set -u3 %fml- $+(fml,.,$ticks,.)
  27. if $sock(fml-) { sockclose $v1 }
  28. sockopen fml- www.fmylife.com 80
  29. sockmark fml- $+(sockwrite -nt fml-,^,$&
  30. GET /random HTTP/1.0,^,Host: $sock(fml-).addr,$&
  31. ^,Connection: close,^,.msg $iif(#,#,$nick)) #FML 14,1[4Fuck My Life14]15
  32. }
  33. }
  34.  
  35. on *:TEXT:!CFML*:#:{
  36. if ($2 == $null) {
  37. if ($($+(%,FMLTimer,$network),2) == on) { msg $Chan FML Timer is already on! If you want to clear the timer and variables type: !CFML Clear | halt }
  38. if ($($+(%,FMLTimer,$network),2) == $null) { set %FMLTimer $+ $network on | timer $+ $network 0 120 timerfml | msg $Chan 4,1Auto-FML Quotes every0 2 4Minutes0. 4Enjoy them hosted by 0H0LLYWOOD4. | halt }
  39. }
  40. if ($2 == Clear) { timers off | unset %FMLTimer $+ $network | msg $Chan All timers and variables are now cleared. Please Type !cfml again to Start Auto-FML | halt }
  41. }
  42.  
  43. ON *:JOIN:#fml:{ if ($nick == $me) { .timer $+ $network $+ fml 0 120 timerfml } }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement