Advertisement
Guest User

correctway

a guest
Feb 23rd, 2020
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.50 KB | None | 0 0
  1. on *:text:*!horoscope*:#: {
  2. var %in, %l | %in = $stripstyle($1-) | tokenize 32 %in
  3. if ($1 != !horoscope) halt
  4. .set %horoNick $nick
  5. .set %horoNickChan $chan
  6. var %sock, %l
  7. %sock = $+(horoscope,.,$lower($2))
  8. if ($sock(%sock)) halt
  9. if ($istok(Aquarius.Pisces.Aries.Taurus.Gemini.Cancer.Leo.Virgo.Libra.Scorpio.Sagittarius.Capricorn,$2,46)) {
  10. set %horochan. [ $+ [ $+(%sock) ] ] #
  11. sockopen %sock danger.org.uk 80
  12. if ($istok(sex romantic 2 money finance work flirt business,$3,32)) {
  13. 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))
  14. .set %type. [ $+ [ $+(%sock) ] ] $+(&,type,=,$replace($3,romantic,3,sex,4,money,5,work,6,finance,6,flirt,7,business,8))
  15. }
  16. else {
  17. sockmark %sock Your Daily Horoscope
  18. .unset %type. [ $+ [ $+(%sock) ] ]
  19. }
  20. }
  21. if (!$2 || !$istok(Aquarius.Pisces.Aries.Taurus.Gemini.Cancer.Leo.Virgo.Libra.Scorpio.Sagittarius.Capricorn,$2,46)) {
  22. msg $chan 3Horoscope usage: 2!Horoscope3 <sign> [br]Options: Aquarius Pisces Aries Taurus Gemini Cancer Leo Virgo Libra Scorpio Sagittarius Capricorn
  23. notice %horoNick For More Options: !horoOptions | halt
  24. }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement