Hawkee snippets stats
Platform: mIRC
Published Apr 15, 2012
Updated Apr 16, 2012
With this script you can see how much snippets there are on hawkee.
I haven't found this script or a look-a-like. And its very useful (for some of us...)
Example
<Aha2Y> !hawkee snippets
<Bot> .Net: 20 :: Applescript: 2 :: Autohotkey: 2 :: AutoIt: 1 :: Bash: 9 :: Byond: 5 :: C++: 45 :: Cold Fushion: 1 :: CSS: 6 :: Hi5: 1 :: Ipad: 1 :: Iphone: 3 :: Java: 21 :: JavaScript: 33 :: jQuery: 1 :: mIRC: 7,442 :: mySQL: 2 :: OpenSocial: 2 :: Perl: 39 :: PHP: 209 :: Python: 32 :: Ruby: 6 :: TCL: 62 :: VisualBasic 5
on *:text:$($iif(!hawkee snippets = $strip($1),$1)):#:{
set %hawkee.static.channel $chan
sockClose hstatsnippets
sockOpen hstatsnippets www.hawkee.com 80
}
on *:SockOpen:hstatsnippets: {
sockwrite -nt hstatsnippets GET /snippets/ HTTP/1.0
sockwrite -nt hstatsnippets Host: www.hawkee.com
sockwrite -nt hstatsnippets $crlf
}
on *:SockRead:hstatsnippets:{
var %read
sockread %read
if ($regex(%read,/(.+) \050(\d+|\d+,\d+)\051/)) {
if (*.NET* iswm %read) {
tokenize 32 $noHTML(%read)
set %hawkee.static.dotnet $remove($2,$chr(40),$chr(41))
}
if (*AppleScript* iswm %read) {
tokenize 32 $noHTML(%read)
set %hawkee.static.applescript $remove($2,$chr(40),$chr(41))
}
if (*AutoHotkey* iswm %read) {
tokenize 32 $noHTML(%read)
set %hawkee.static.autohotkey $remove($2,$chr(40),$chr(41))
}
if (*AutoIt* iswm %read) {
tokenize 32 $noHTML(%read)
set %hawkee.static.autoit $remove($2,$chr(40),$chr(41))
}
if (*Bash Shell* iswm %read) {
tokenize 32 $noHTML(%read)
set %hawkee.static.bash $remove($3,$chr(40),$chr(41))
}
if (*BYOND* iswm %read) {
tokenize 32 $noHTML(%read)
set %hawkee.static.byond $remove($2,$chr(40),$chr(41))
}
if (*C++* iswm %read) {
tokenize 32 $noHTML(%read)
set %hawkee.static.c++ $remove($2,$chr(40),$chr(41))
}
if (*Cold Fusion* iswm %read) {
tokenize 32 $noHTML(%read)
set %hawkee.static.cfush $remove($3,$chr(40),$chr(41))
}
if (*CSS* iswm %read) {
tokenize 32 $noHTML(%read)
set %hawkee.static.css $remove($2,$chr(40),$chr(41))
}
if (*Hi5* iswm %read) {
tokenize 32 $noHTML(%read)
set %hawkee.static.hi5 $remove($2,$chr(40),$chr(41))
}
if (*iPad* iswm %read) {
tokenize 32 $noHTML(%read)
set %hawkee.static.ipad $remove($2,$chr(40),$chr(41))
}
if (*<iPhone* iswm %read) {
tokenize 32 $noHTML(%read)
set %hawkee.static.iphone $remove($2,$chr(40),$chr(41))
}
if (*Java* iswm %read) {
tokenize 32 $noHTML(%read)
set %hawkee.static.java $remove($2,$chr(40),$chr(41))
}
if (*Javascript* iswm %read) {
tokenize 32 $noHTML(%read)
set %hawkee.static.javascript $remove($2,$chr(40),$chr(41))
}
if (*jQuery* iswm %read) {
tokenize 32 $noHTML(%read)
set %hawkee.static.jquery $remove($2,$chr(40),$chr(41))
}
if (*mIRC* iswm %read) {
tokenize 32 $noHTML(%read)
set %hawkee.static.mirc $remove($2,$chr(40),$chr(41))
}
if (*mySQL* iswm %read) {
tokenize 32 $noHTML(%read)
set %hawkee.static.mysql $remove($2,$chr(40),$chr(41))
}
if (*OpenSocial* iswm %read) {
tokenize 32 $noHTML(%read)
set %hawkee.static.opensocial $remove($2,$chr(40),$chr(41))
}
if (*Perl* iswm %read) {
tokenize 32 $noHTML(%read)
set %hawkee.static.perl $remove($2,$chr(40),$chr(41))
}
if (*PHP* iswm %read) {
tokenize 32 $noHTML(%read)
set %hawkee.static.php $remove($2,$chr(40),$chr(41))
}
if (*Python* iswm %read) {
tokenize 32 $noHTML(%read)
set %hawkee.static.python $remove($2,$chr(40),$chr(41))
}
if (*Ruby / Rails* iswm %read) {
tokenize 32 $noHTML(%read)
set %hawkee.static.ruby $remove($4,$chr(40),$chr(41))
}
if (*TCL* iswm %read) {
tokenize 32 $noHTML(%read)
set %hawkee.static.tcl $remove($2,$chr(40),$chr(41))
}
if (*Visual Basic* iswm %read) {
tokenize 32 $noHTML(%read)
set %hawkee.static.visualbasic $remove($3,$chr(40),$chr(41))
msg %hawkee.static.channel .Net: %hawkee.static.dotnet 3:: Applescript: %hawkee.static.applescript 3:: Autohotkey: %hawkee.static.autohotkey 3:: AutoIt: %hawkee.static.autoit 3:: Bash: %hawkee.static.bash 3:: Byond: %hawkee.static.byond 3:: C++: %hawkee.static.c++ 3:: Cold Fushion: %hawkee.static.cfush 3:: CSS: %hawkee.static.css 3:: Hi5: %hawkee.static.hi5 3:: Ipad: %hawkee.static.ipad 3:: Iphone: %hawkee.static.iphone 3:: Java: %java 3:: JavaScript: %hawkee.static.javascript 3:: jQuery: %hawkee.static.jquery 3:: mIRC: %hawkee.static.mirc 3:: mySQL: %hawkee.static.mysql 3:: OpenSocial: %hawkee.static.opensocial 3:: Perl: %hawkee.static.perl 3:: PHP: %hawkee.static.php 3:: Python: %hawkee.static.python 3:: Ruby: %hawkee.static.ruby 3:: TCL: %hawkee.static.tcl 3:: VisualBasic %hawkee.static.visualbasic
unset %hawkee.static.*
sockclose hstatsnippets
}
}
}
alias noHTML return $regsubex($1, /<[^>]+(?:>|$)|^[^<>]+>/g, $null)