Advertisement
Guest User

horoscrope

a guest
Feb 23rd, 2020
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.20 KB | None | 0 0
  1. on *:text:!horoscope*:#: {
  2. var %sock, %l
  3. if (hyway isin #) halt
  4. %sock = $+(horoscope,.,$lower($2))
  5. if ($sock(%sock)) halt
  6. if ($istok(Aquarius.Pisces.Aries.Taurus.Gemini.Cancer.Leo.Virgo.Libra.Scorpio.Sagittarius.Capricorn,$2,46)) {
  7. set %horochan. [ $+ [ $+(%sock) ] ] #
  8. sockopen %sock danger.org.uk 80
  9. if ($istok(sex romantic 2 money finance work flirt business,$3,32)) {
  10. 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),year,$+(Your,$chr(32),Yearly,$chr(32),Horoscope))
  11. .set %type. [ $+ [ $+(%sock) ] ] $+(&,type,=,$replace($3,romantic,3,sex,4,money,5,work,6,finance,6,flirt,7,business,8))
  12. }
  13. else {
  14. sockmark %sock Your Daily Horoscope
  15. .unset %type. [ $+ [ $+(%sock) ] ]
  16. }
  17. }
  18. if (!$2 || !$istok(Aquarius.Pisces.Aries.Taurus.Gemini.Cancer.Leo.Virgo.Libra.Scorpio.Sagittarius.Capricorn,$2,46)) {
  19. msg $chan 3Horoscope usage: 2!Horoscope3 <sign> [br]Options: Aquarius Pisces Aries Taurus Gemini Cancer Leo Virgo Libra Scorpio Sagittarius Capricorn[br]7Secondary Options: 227, 2sex7, 2romantic7, 2money7, 2work7, 2flirt7 & 2business7.
  20. }
  21. }
  22.  
  23. on *:sockopen:horoscope.*: {
  24. sockwrite -n $sockname GET $+(/,horoscope,/,?,id,=,$gettok($sockname,2,46),$var($+(%type,.,$sockname),1).value) HTTP/1.1
  25. sockwrite -n $sockname Host: pony.express
  26. sockwrite -n $sockname Connection: close
  27. sockwrite -n $sockname $crlf
  28. }
  29. on *:sockread:horoscope.*: {
  30. var %horotemp, %len, %count, %l
  31. sockread %horotemp
  32. tokenize 32 %horotemp
  33. if ($1 == set.it) && (4 isin $replace($1-,$sock($sockname).mark,$+(4,$sock($sockame).mark))) .set %horoscope. [ $+ [ $sockname ] ] %horoscope. [ $+ [ $sockname ] ] $2-
  34. if ($1 == send.it) && (%horoscope. [ $+ [ $sockname ] ]) {
  35. tokenize 32 %horoscope. [ $+ [ $sockname ] ]
  36. msg %horochan. [ $+ [ $sockname ] ] $1-
  37. .unset %horoscope. [ $+ [ $sockname ] ]
  38. }
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement