You use the commands as:
.calc - Calculate your request.
.tb - Timebans a user.
.kb - Kickbans a user.
.inv - Invites a bot.
This script also include a few more commands.
On *:INPUT:#:{
if ($1 == .calc) {
set %numbers $iif($left($2,1) == $null, No numbers given., $2-)
echo -a < $+ $time $+ > ** [CALCULATOR]: %numbers = $bytes($calc($replace(%numbers,k,*1000,m,*1000000,pi,$pi)),bd)
unset %numbers
}
if ($1 == @calc) {
set %numbers $iif($left($2,1) == $null, No numbers given., $2-)
msg #** [CALCULATOR]: %numbers = $bytes($calc($replace(%numbers,k,*1000,m,*1000000,pi,$pi)),bd)
unset %numbers
}
if ($1 == .inv) {
set %botinv $iif($left($2,1) == $null, FailScript, $2-)
invite %botinv $chan
echo -a < $+ $time $+ > ** [INVITE]: Invited bot < $+ %botinv $+ > to this channel.
unset %botinv
}
if ($1 == .tb) {
set %tb.who $iif($left($2,1) == $null, $me, $2)
set %tb.reason $iif($left($4,1) == $null, No reason given., $4-)
set %tb.time $calc($3 * 60)
/ban $+(-ku,%tb.time) $chan %tb.who 1 $+ %tb.who $+ 3 has been timebanned for1 $3 $+ 3 $+ mins! For reason:1 %tb.reason
unset %tb.*
}
if ($1 == .kb) {
set %kb.who $iif($left($2,1) == $null, $me, $2)
set %kb.reason $iif($left($3,1) == $null, No reason given., $3-)
mode # +b %kb.who $address(%kb.who,2)
unset %kb.*
if ($1 == .gaytest) {
set %gay.who $iif($left($2,1) == $null, $me, $2)
msg $chan ** [GAYTEST]: The gaytest returns that %gay.who is $rand(0,100) $+ % gay!
unset %gay.who
}
else { halt }
}
}