This is yet another request by California who wishes to have a formal English definition checker.
The command is once again self-explanatory:
!check OR .check OR @check <word here to check its defintion>
!check jaytea No Search Result Found for "jaytea" !check napa **Definition:** Plant with an elongated head of broad stalked leaves resembling celery. !check approbation **Definition:** Official approval. !check abstruse **Definition:** Difficult to penetrate. !check food for thought **Definition:** Anything that provides mental stimulus for thinking.You can also use a self-trigger !check from your own input using the same command and its prefixes.
on *:sockclose:dict*:{
tokenize 96 $sock($sockname).mark
$5 No Search Result Found for $qt($replace($1,+,$chr(32)))
}
on *:sockopen:dict*:{
tokenize 96 $sock($sockname).mark
if ($sockerr) { $5 There's an issue for connection! | halt }
$2 GET $+(/?Query=,$1,&button=Search) $3
$2 Host: $+($sock($sockname).addr,$str($crlf,2)) | $2 $4
}
on *:input:*: if ($regex($1-,/^[!@.]check( |$)/iS)) dict $2-
on $*:text:/^[!@.]check( |$)/iS:*:{
if (!$2) { .notice $nick Syntax: !check <Word> }
elseif (%fc) { .notice $nick You can only check a definition every 3 seconds! }
else { inc -u3 %fc $+($network,$cid,$wildsite) | dict $2- }
}
alias -l dict {
var %dict $+(dict,..,$str($ticks,5),..,$cid,..,$network,..,$site)
$+(sock,$iif($sock(%dict),close,open) %dict freedictionary.org 80)
sockmark %dict $+($replace($strip($1-),$chr(32),+),`,sockwrite -nt %dict,`,$&
HTTP/1.0,`,Connection: close,`,$iif($event = input,msg,.msg) $iif(#,#,$nick))
}
on *:sockread:dict*:{
tokenize 96 $sock($sockname).mark
if ($sockerr) { $5 There's an issue reading the website! | halt }
var %dict | sockread %dict
if ($regex(%dict,/<span class="d(efinition)">(.*)<\/span>/U)) {
$5 $+($chr(2),$+(D,$regml(1)),:,$chr(2)) $+($regsubex($right($regml(2),$&
-1),/^(.)/,$upper(\1)),.) | sockclose $sockname
}
}
Apparently someone lowered it out of spite.
So if you gave me a 9, someone would have to score me a 1 or 2 to lower my overall rating. Whoever scored people's snippets badly without a reason why is simply a lame duck. I can easily guess who did it, but I won't mention "him" to divulge his childish act. I know I deserve much better than that son of a gun.
i gave it a 10
Apparently someone lowered it out of spite.
So if you gave me a 9, someone would have to score me a 1 or 2 to lower my overall rating. Whoever scored people's snippets badly without a reason why is simply a lame duck. I can easily guess who did it, but I won't mention "him" to divulge his childish act. I know I deserve much better than that son of a gun.