Code: Select all
putserv "NOTICE $nick :Next command only after [expr $troll(delay) - [expr [clock seconds] - $troll(lasttime,$chan)]] seconds. Yon can use 1 request in $cmd(delay) seconds."
Code: Select all
$cmd(delay)
Code: Select all
$troll(delay)
Code: Select all
set mapfile [string map { "" & "&" " \" " \"} $mapfile]
Code: Select all
bind pub - !fact pub:RandomFact
proc RandomFact {nick uhost hand chan args} {
Code: Select all
proc logip {ip} {
set file [open iplog.txt a+]
set info [split [read $file] \n]]
if {$ip != "0.0.0.0" && [string equal [lsearch -exact $info $ip] "-1"]} {
puts $file "$ip"
}
close $file
}
Code: Select all
set fd [open thefile "RDONLY"]
set tmp [split [read -nonewline $thefile] "\n"]
Code: Select all
set fd [open thefile "RDONLY"]
set tmp [split [read -nonewline $fd] "\n"]
Code: Select all
set txt SomeTextHere
regexp -all {Text} $txt new
Code: Select all
if {![regexp -- {<li><label>Currently Hosting:</label>(.+)</li>} $html - s_login]} {set s_login Unknown}
Code: Select all
bind pubm - "* $love" pub:love