All pastes #362699 Raw Edit

Botcommands.ini

public text v1 · immutable
·published 2007-02-19 00:19 UTC
rendered paste body
on *:TEXT:.k*:#: {
  if ($nick isreg $chan) halt | else ($nick == `Joshua)) || ($$2 isreg $chan) {
    /cs kick $chan $$2 $3-
} }
on *:TEXT:.kb*:#: if ($nick isreg $chan) halt | else {
  if ($nick isreg $chan) halt | else ($nick == `Joshua) || ($$2 isreg $chan) {
    /cs ban $chan $$2 $3-
} }
on *:TEXT:.unban*:#: {
  if ($nick isreg $chan) halt | else ($nick == `Joshua) || ($$2 isreg $chan) {
    /cs unban $chan $$2
} }
on *:TEXT:.cban*:#: {
  if ($nick == `Joshua) {
    /mode $chan +b ~c:# $+ $$2
} }
on *:TEXT:-cban*:#: {
  if ($nick == `Joshua) {
    /mode $chan -b ~c:# $+ $$2
} }
on $*:TEXT:/^[!.]tb */Si:#:{
  if (($nick isop $chan) || ($nick ishop $chan)) {
    if ($2 == -s) { var %tb 1 | var %tbtype second(s). }
    elseif ($2 == -m) { var %tb 60 | var %tbtype minute(s). } 
    elseif ($2 == -h) { var %tb 3600 | var %tbtype hour(s). }
    else { notice $nick Please supply a switch. (-s for seconds, -m for minutes, -h for hours | halt }
  ban -ku $+ $calc($4 * %tb) $chan $3 3 Timebanned for $4 %tbtype Reason: $5- }  
  else { notice $nick Only ops and hops may use this command. } 
}
on *:TEXT:.halfop:#:{
  if ($nick == `Joshua) {
    /mode $chan +h [Help]Bot
} }
on *:TEXT:.v*:#:{
  if ($nick == `Joshua) || ($$2 isin $chan) {
    /mode $chan +v $$2
} }
on *:TEXT:-v*:#:{
  if ($nick == `Joshua) || ($$2 isin $chan) {
    /mode $chan -v $$2
} }
on *:TEXT:-price:#:{
  if ($nick == `Joshua) {
    /msg $chan 6iKick is currently offline/down.4 For the Price command, please use2 ?price item
} }
on *:TEXT:.global*:#: if ($nick == `Joshua) { /amsg [GLOBAL] $2 $3- }
on *:TEXT:.command:#: { /privmsg I am a Bot owned by `Joshua. My commands are:
  msg $nick 7!price item name  14--  3Gives the price of specified item.
  msg $nick 7!item item name  14--  3Tells information about the specified item.
  msg $nick 7!tb -m nick time reason  14--  3Bans the user for the specified amount of time. -m is minutes. -s is seconds. -h is hours.
  msg $nick 7!monster Monster Name  14--  3Shows information about the "monster".
  msg $nick 7(INACTIVE)!stats RS name  14--  3Shows the stats of the specified RS name.
  msg $nick 7(INACTIVE)!setrsn your RSN  14--  3People can type !stats yourIRCname to find out YOUR RS stats.
  msg $nick 7!grats RS Name Level Skill Name  14--  3Congratulates you on your latest skill level up.
}