RandomFunFacts.com Socket
mIRC Code
+ 0 likes
Please Register to submit score.
| Average Score | 0.0 (of 0 scores) |
| Date Added | Jun 15, 2009 |
| Last Updated | Jun 15, 2009 |
| Tags | fact facts fun random sock sockclose socket sockopen |
Introduction
Syntax: `fact
(Feel free to change the syntax to whatever, "`fact" is probably taken already >_>)
mIRC Snippet:
RandomFunFacts.com Socket
Posted on Jun 15, 2009 3:56 pm
Posted on Jun 15, 2009 3:56 pm
it almost looks like you are useing some messed up socket maker to make these. =/
no need for all them vars an whatnot you could have just done this
no need for all them vars an whatnot you could have just done this
| Code: |
| on $*:text:/^@fact$/iS:#: { if (!$($+(%,factsflood,$nick),2)) { set -u3 $+(%,factsflood,$nick) on | if ($sock(fact)) .sockclose fact | sockopen fact www.randomfunfacts.com 80 | sockmark fact # } } on *:sockopen:fact: { sockwrite -nt $sockname GET / HTTP/1.1 | sockwrite -nt $sockname Host: $+(www.randomfunfacts.com,$str($crlf,2)) } on *:sockread:fact: { var %fact | sockread %fact if ($regex(%fact,/<i>(.+)<\/i>/)) { msg $sock(fact).mark $regml(1) | sockclose fact } } |
mIRC Snippet:
RandomFunFacts.com Socket
Posted on Jun 15, 2009 7:22 pm
Posted on Jun 15, 2009 7:22 pm
Im not using a socket CREATOR, just a template, I dont know what I can abbreviate just yet, so once I get the hang of it I should be in the clear.




