on *:sockopen:scoopweb: tokenize 32 $sock($sockname).addr sockwrite -n $sockname GET / HTTP/1.1 sockwrite -n $sockname Host: $1 sockwrite -n $sockname User-Agent: mIRC-ScoopBot/1.0 sockwrite -n $sockname $crlf $+ $crlf
When a user types !scoop example.com , mIRC opens a socket, requests the page, parses the <title> tag, and "scoops" it to the channel. Example 2: Scooping a Line from Another Channel This script scoops the last message from a specific user in a different channel. scoop script mirc
; ---- Web Scoop (Full Page Parser) ---- alias performWebScoop var %url = $1 if (%url !isurl) msg # Invalid URL. sockopen scoopweb %url 80 on *:sockopen:scoopweb: tokenize 32 $sock($sockname)
; ---- System Info Scoop ---- alias performSysScoop var %cpu = $comvar($comcreate("Win32_PerfFormattedData_PerfOS_Processor"),PercentProcessorTime,5) var %ram = $comvar($comcreate("Win32_OperatingSystem"),TotalVisibleMemorySize,1) var %freeram = $comvar($comcreate("Win32_OperatingSystem"),FreePhysicalMemory,1) msg # 💻 SysScoop ▸ CPU: %cpu% ▸ RAM: $round($calc( (%freeram / %ram) * 100 ),1)% free hadd ScoopDB last_scoop CPU: %cpu% RAM: %freeram / %ram sockopen scoopweb %url 80 ; ---- System Info
on :sockread:scoop : var %data sockread %data if (<title> isin %data) var %title = $gettok(%data,2,60) ; 60 = ascii code for '<' %title = $remove(%title,</title>) msg # Title scooped: %title sockclose $sockname
Unlike a single, famous script called "Scoop," the term refers to a In mIRC slang, a "scoop" script automatically grabs data—such as news headlines, server statuses, or chat quotes—and presents it to the user or a channel.