Advertisement
pony

Dangers working horo

Feb 17th, 2020
315
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.73 KB | None | 0 0
  1. on *:text:!horoscope*:#: {
  2. .set %horoNick $nick
  3. .set %horoNickChan $chan
  4. {
  5. var %sock, %l
  6. %sock = $+(horoscope,.,$lower($2))
  7. if ($sock(%sock)) halt
  8. if ($istok(Aquarius.Pisces.Aries.Taurus.Gemini.Cancer.Leo.Virgo.Libra.Scorpio.Sagittarius.Capricorn,$2,46)) {
  9. set %horochan. [ $+ [ $+(%sock) ] ] #
  10. sockopen %sock danger.org.uk 80
  11. if ($istok(sex romantic 2 money finance work flirt business,$3,32)) {
  12. sockmark %sock $replace($3,2,Tommorows,sex,$+(Monthly,$chr(32),Sex,$chr(32),Horoscope),romantic,$+(Weekly,$chr(32),Romantic,$chr(32),Horoscope),finance,$+(Your,$chr(32),Daily,$chr(32),Finance),money,$+(Your,$chr(32),Daily,$chr(32),Finance),work,$+(Your,$chr(32),Daily,$chr(32),Work),business,$+(Your,$chr(32),Monthly,$chr(32),Business),flirt,$+(Your,$chr(32),Daily,$chr(32),Flirt))
  13. .set %type. [ $+ [ $+(%sock) ] ] $+(&,type,=,$replace($3,romantic,3,sex,4,money,5,work,6,finance,6,flirt,7,business,8))
  14. }
  15. else {
  16. sockmark %sock Your Daily Horoscope
  17. .unset %type. [ $+ [ $+(%sock) ] ]
  18. }
  19. }
  20. if (!$2 || !$istok(Aquarius.Pisces.Aries.Taurus.Gemini.Cancer.Leo.Virgo.Libra.Scorpio.Sagittarius.Capricorn,$2,46)) {
  21. msg $chan 3Horoscope usage: 2!Horoscope3 <sign> [br]Options: Aquarius Pisces Aries Taurus Gemini Cancer Leo Virgo Libra Scorpio Sagittarius Capricorn
  22. notice %horoNick For More Options: !horoOptions | halt
  23. }
  24. }
  25. }
  26. on *:sockopen:horoscope.*: {
  27. sockwrite -n $sockname GET $+(/,horoscope,/,?,id,=,$gettok($sockname,2,46),$var($+(%type,.,$sockname),1).value) HTTP/1.1
  28. sockwrite -n $sockname Host: pony.express
  29. sockwrite -n $sockname Connection: close
  30. sockwrite -n $sockname $crlf
  31. }
  32. on *:sockread:horoscope.*: {
  33. var %horotemp, %len, %count, %l
  34. sockread %horotemp
  35. tokenize 32 %horotemp
  36. if ($1 == set.it) && (4 isin $replace($1-,$sock($sockname).mark,$+(4,$sock($sockame).mark))) .set %horoscope. [ $+ [ $sockname ] ] %horoscope. [ $+ [ $sockname ] ] $2-
  37. if ($1 == send.it) && (%horoscope. [ $+ [ $sockname ] ]) {
  38. tokenize 32 %horoscope. [ $+ [ $sockname ] ]
  39. msg %horoNickChan [Style ff:Comic Sans MS;co:#FF0000;b;] >>>>> %horoNick <<<<<
  40. msg %horochan. [ $+ [ $sockname ] ] %horoscope. [ $+ [ $sockname ] ]
  41. msg %horoNickChan [Style ff:Comic Sans MS;co:#FF0000;b;] Credits Danger
  42. .unset %horoscope. [ $+ [ $sockname ] ]
  43. }
  44. }
  45. on *:text:*:#: {
  46. if (!horoOptions isin $1-) {
  47. msg %horoNickChan Text !Horoscope <sign> then [Style ff:Comic Sans MS;co:#FF0000;b;] sex , romantic , 2 , money , finance , work , flirt , business .
  48. notice %horoNick Text !Horoscope <sign> then [Style ff:Comic Sans MS;co:#FF0000;b;] sex , romantic , 2 , money , finance , work , flirt , business .
  49. }
  50. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement