Skip to content

[mirc scripting]Scripting a channel bot #1

Featured Replies

We have this

on *:TEXT:!Test *:#-?-%botnick:

# means channel where you will type the command (!Test)

?  means that you can type the command (!test) on bot or on the channel

%botnick means that you can type the command (!test) on bot only.

1) Simple Access System

ACCESS channel {ADD | DEL | LIST | VIEW | LISTLEVEL | COUNT | CLEAR} [parameters]

When $2=User , $3=Reason , $nick=Person who does this action [Chanserv Commands]

a)  on *:TEXT:!addaccess *:#:{

if ($nick isop $Chan) cs access # add $2 $3

/op # $2

}

b)  on *:TEXT:!delacess *:#:{

if ($nick isop $Chan) cs access # DEL $2

/dop #  $2

Simple Akick System

AKICK channel {ADD | DEL | LIST | VIEW | COUNT | ENFORCE} [parameters]

on *:TEXT:!addakick *:#:{

if ($nick isop $chan) cs AKICK # add $2 $3 [Add akick]

if ($2 isop $chan) cs access # DEL $2 [if user who akicked is opped will be DEL from access list]

ban # $2 [ban Ip]

kick # $2 $3 [Kicked by bot with reason($3)]

on *:TEXT:!delakick *:#:{

if ($nick isop $Chan) cs akick # DEL $2

[Warning: cs akick # DEL user!*@*]

How to make a responder.

on *:TEXT:Hello *:#:{

msg # Test }

3) Ban System:

on *:TEXT:!ban *:#:{

if ($nick isop $Chan) ban # $2

kick # $2 $3 }

on *:TEXT:!unban *:#:{

if ($nick isop $Chan) mode # $2 -b

}

on *:TEXT:!kick *:#:{

if ($nick isop $chan) kick # $2 $3

}

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.