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

}

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...