on *:TEXT:!autocom *:#: {
if ($2 == off) { unset %counter | msg $chan Timed Messages For $chan Is Now Off }
set $+(%,FinalTimeAuto,$chan) $calc($2 * 60)
if ($nick == $remove($chan,$chr(35))) {
describe $chan AutoCom: ON
$+(.timerNow,$chan) 72 $($+(%,FinalTimeAuto,$chan),2) Linksall $chan
return
}
else { msg # $nick -> You do not have permission to perform this action. }
}
alias Linksall {
var %chan = $remove($1,$chr(35))
var %lines = $lines(linksall $+ %chan $+ .txt)
if (!%counter) || (%counter > %lines) { set %counter 1 }
var %msg = $read(linksall $+ %chan $+ .txt,%counter)
msg $1 %msg
inc %counter
}