Advertisement
Guest User

horoscrope v2

a guest
Feb 16th, 2020
305
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 1.50 KB | None | 0 0
  1. on *:text:!horoscope*:#: {
  2.   var %sock, %l
  3.   %sock = $+(horoscope,.,$lower($2))
  4.   if ($sock(%sock)) halt
  5.   if ($istok(Aquarius.Pisces.Aries.Taurus.Gemini.Cancer.Leo.Virgo.Libra.Scorpio.Sagittarius.Capricorn,$2,46)) {
  6.     set %horochan. [ $+ [ $+(%sock) ] ] #
  7.     sockopen %sock danger.org.uk 80
  8.     if ($istok(sex romantic 2,$3,32)) sockmark %sock $replace($3,2,Tommorows,sex,$+(Monthly,$chr(32),Sex,$chr(32),Horoscope),romantic,$+(Weekly,$chr(32),Romantic,$chr(32),Horoscope))
  9.     else sockmark %sock Your Daily Horoscope
  10.   }  
  11.   if (!$2 || !$istok(Aquarius.Pisces.Aries.Taurus.Gemini.Cancer.Leo.Virgo.Libra.Scorpio.Sagittarius.Capricorn,$2,46)) {
  12.     msg $chan Horoscope usage: !Horoscope <sign>
  13.     msg $chan Options: Aquarius Pisces Aries Taurus Gemini Cancer Leo Virgo Libra Scorpio Sagittarius Capricorn
  14.   }
  15. }
  16. on *:sockopen:horoscope.*: {
  17.   sockwrite -n $sockname GET $+(/,horoscope,/,?,id,=,$gettok($sockname,2,46)) HTTP/1.1
  18.   sockwrite -n $sockname Host: pony.express
  19.   sockwrite -n $sockname Connection: close
  20.   sockwrite -n $sockname $crlf
  21. }
  22. on *:sockread:horoscope.*: {
  23.   var %horotemp, %l
  24.   sockread %horotemp
  25.   tokenize 32 %horotemp
  26.   if ($1 == set.it) && (4 isin $replace($1-,$sock($sockname).mark,$+(4,$sock($sockame).mark))) .set %horoscope. [ $+ [ $sockname ] ] %horoscope. [ $+ [ $sockname ] ] $2-
  27.   if ($1 == send.it) && (%horoscope. [ $+ [ $sockname ] ]) {
  28.     msg %horochan. [ $+ [ $sockname ] ] %horoscope. [ $+ [ $sockname ] ]
  29.     .unset %horoscope. [ $+ [ $sockname ] ]
  30.   }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement