Basic Bot Commands

By SLidingmike on Sep 08, 2007

This Snippet is a basic bot commands.
First Copy and Paste the Snippet into your remotes.
Next in the Script Editor, Click on the User Tag.
Create users that are allowed to use the commands.
Ex.
5:nickhere
5:nickhere2

And so on and so forth.

List of Commands

!mod [nickhere]
!demod [nickhere]
!voice [nickhere]
!devoice [nickhere]
!owner [nickhere]
!deowner [nickhere]
!halfop [nickhere]
!dehalf [nickhere]
!help

!help lists the commands and what they do.

on 5:text:*:# {
  if ($1 == !mod) mode $chan +o $2
  if ($1 == !demod) mode $chan -o $2
  if ($1 == !voice) mode $chan +v $2
  if ($1 == !devoice) mode $chan -v $2
  if ($1 == !owner) mode $chan +q $2
  if ($1 == !deowner) mode $chan -q $2
  if ($1 == !halfop) mode $chan +h $2
  if ($1 == !dehalf) mode $chan -h $2
}

on 5:TEXT:!help:# {
notice $nick Bot Command Help
notice $nick --------------------
notice $nick !mod [nickhere] Sets +o
notice $nick !demod [nickhere] Sets -o
notice $nick !voice [nickhere] Sets +v
notice $nick !devoice [nickhere] Sets -v
notice $nick !owner [nickhere] Sets +q
notice $nick !deowner [nickhere] Sets -q
notice $nick !halfop [nickhere] Sets +h
notice $nick !dehalf [nickhere] Sets -h
} 

Comments

Sign in to comment.
Tippy   -  Oct 19, 2007

There is so many errors that I recommend you don\'t deal with it :)

 Respond  
SLidingmike   -  Sep 08, 2007

Sorry about the errors i\'m updating now, and you don\'t have to code !command:#: You can code it as !command:# It just depends on how code. thanks though.

 Respond  
Gummo   -  Sep 08, 2007

You also don\'t need the { } if you only use one command (remember to add the : after each #!)

 Respond  
Gummo   -  Sep 08, 2007

You should use $$2 so you don\'t bring up the list of ops, etc. if they don\'t enter a nickname. Also:

notice %nick !mod [nickhere] Sets +o

%nick should be $nick :)

 Respond  
guest598594   -  Sep 08, 2007

and after the # ur forgettin a :

 Respond  
guest598594   -  Sep 08, 2007

id put em together, cuz u can only have a certain number of on texts in a file

on 5:text:*:#:{
  if ($1 == !mod) mode $chan +o $2
  if ($1 == !demod) mode $chan -o $2
}
 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.