Jump to content

[mirc scripting]Scripting a channel bot #1


Recommended Posts

Posted

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

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..