Channel's Rules

By LaTiNo on Mar 28, 2010

Hello, these are the commads for Bot's master for to use in the channel.
First Your need to have a level 100
Just paste the following code at your mIRC Remote: ALT+R

How use it:

Examples:

!mode +c
!unban <nick | address | mask >
!topic "Welcome To #LaTiNo"

To change of server:
!Reconect irc.newserver.net

!devoice
!kick
!greet to
!ban <nick | address | mask>

Don't forget put the bot name in the command "!ban" for that the banned don't affects to the bot
Please post your Comments
Enjoy!

;####################### MASTER'S COMANDS #######################
;######################## By LaTiNo ###########################

on 100:text:!mode*:#:/mode # -k 6Changing.Modes | /mode # $2
on 100:text:!unban*:#:/mode # -b $2
on 100:text:!topic*:#:/topic #  $2-  
on 100:text:*join*:?:/join #$2 
on 100:text:!part*:#:/part $chan IRC-Ma§Te® 
on 100:text:!Disconect:#:/quit 4Disconnected: * Bot <namebot> by <bot owner> *
On 100:text:!reconect*:#:/server $2-
on 100:text:!op* :#:/mode $chan +ok $2 you.are.an.operator
on 100:text:!op me:#:/mode $chan +ok $nick you.are.the.MASTER
on 100:text:!devoice*:#:/mode # -v-k $2 6IDLE.User
on 100:text:!kick *:#:/kick $chan $2 $3-  
on 100:text:!greet to *:#:/msg # Greetins $3 , Thx for to be my friend :)

on 100:text:!ban *:#:{
  if ("namebot" !== $2) {
    .ban -u1900 # $2 3 | /kick # $2   4  $2 : You are banned!
  }
}

Comments

Sign in to comment.
Jethro   -  Mar 31, 2010

Jethro_ you have reason :).... right thing is: if ($me !== $2) {
Why do you need an extra equal sign for? One will do just fine.

if you use three equal signs, I'll understand. !=== because this will become case sensitive.

 Respond  
luighlatino   -  Mar 31, 2010

Hi Friends... The code contain the followin errors:
Isn`t +ok .... reeplace it with: +o-k

The "-k" its for show a message on the channel when the bot start a command:

Example:

!op LaTiNo *iLLiMaNi sets mode: : +o-k LaTiNo You.are.an.operator =O ==== Jethro_ you have reason :).... right thing is: if ($me !== $2) { ==== also you can to use: ban.txt where are the kick/ban messages.. .ban -u1900 # $2 3 | /kick # $2 4 $2 : $read ban.txt Sorry
 Respond  
GuitarMasterx7   -  Mar 30, 2010

i see, thanks Jethro_ <3
xD

 Respond  
Jethro   -  Mar 29, 2010

Guitar, you don't need the asterisk, since this is NOT used to mode a $3 but a $nick who initiates the command: !op me

To make $3 available, you need to enter: !op me NickHere as shown below:

on @*:text:!op me &:#:/mode $chan +o NickHere

You can also do it as:

on @*:text:!op me *:#: {

or

on @*:text:!op me*:#: {

<- but when you don't leave a space between the command and the asterisk, you need to make your $3 a double signs as $$3 so that mirc will ensure that $3 is specified before being triggered. Doing this will prevent an error.

P.S. You may need to make sure the $3 is on channel.

 Respond  
GuitarMasterx7   -  Mar 29, 2010
on 100:text:!op me*:#:/mode $chan +ok $nick you.are.the.MASTER

ur missing the *
and wth is +ok?

and this is a greet chance for u to learn
if statements >;3

 Respond  
WorldDMT   -  Mar 28, 2010

use /ban -k

on 100:text:!ban *:#:{
  if ("namebot" != $2) {
    .ban -ku1900 # $2 3 4  $2 : You are banned!
  }
}
 Respond  
[DX]   -  Mar 28, 2010

napa182, I guess it's used for virtual host on some networks

 Respond  
Jethro   -  Mar 28, 2010

Don't forget put the bot name in the command "!ban" for that the banned don't affects to the botYou don't have to put the bot name, just do

if ($me != $2) {

You may need to leave a space between each command and the asterisk in the match text section or specify a double $$. You'll get an error when the $2 is not entered.

Question: why do some people keep using one text event per trigger?

 Respond  
napa182   -  Mar 28, 2010

whats user mode +k ?
in the +ok...

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.