A simple auto away for your bot script. It will automatically make your bot away using random messages in autoaway.txt and come back within a certain time period. Just paste this in the Remotes section (Alt-R) on your Bot script and make an 'autoaway.txt' file with your messages in the mIRC folder. Type !autoaway on/off to make it work.
on *:TEXT:!autoaway*:#: {
if ( $istok(on off,$2,32) ) {
.notice $nick Auto-Away $iif(on == $2, Enabled, Disabled)
autoaway $iif(on == $2, on, off)
}
else .notice $nick Usage: !autoaway <on/off>
}
alias autoaway {
var %min = 900, %max = 3600, %m = $1
goto %m
:on
if ( $away ) .away
.timerautoback 1 $r(%min,%max) autoaway back
var %x = $read(autoaway.txt)
.away %x
ame is away: %x
halt
:back
.timerautoaway 1 $r(%min,%max) autoaway on
ame is back. Gone for $duration($awaytime) $+ .
.away
halt
:off
if ( $away ) {
ame is back. Gone for $duration($awaytime) $+ .
.away
.timerautoback off
}
else .timerautoaway off
halt
:%m
}