Triggers for a bot

By Zach224 on May 07, 2009

Simple bot script, nothing big nothing beautiful, simply written, just looking for comments/suggestions and other things, hopefully it will come in handy for someone else as it has for me,
(Not a great scripter, probably obvious from the look if it.)

on 5:text:*:*: {
  if ($1 == !kick*) kick $chan $2-
  if ($1 == !up*) mode $chan +qaohv $2 $2 $2 $2 $2
  if ($1 == !down*) mode $chan -qaohv $2 $2 $2 $2 $2
  if ($1 == !set*) mode $chan $2-
  if ($1 == !say*) msg $chan $2-
  if ($1 == !join*) join $2
  if ($1 == !part*) part $2
  if ($1 == !partall) partall
  if ($1 == !cs) msg chanserv $2-
  if ($1 == !ns) msg nickserv $2-
  if ($1 == !msg) msg $2-
  if ($1 == !notice) notice $2-
  if ($1 == !register*) msg chanserv register $chan $2 None
  if ($1 == !nick*) nick $2-
  if ($1 == !act*) describe $chan $2-
  if ($1 == !hop) hop $chan
  if ($1 == !access*) msg chanserv access $chan add $2-
  if ($1 == !accessdel*) msg chanserv access $chan del $2-
  if ($1 == !query*) query $2-
}

Comments

Sign in to comment.
Cheiron   -  May 08, 2009

nice little one for your first posting here. i noticed you have used an access level of 5 there for the user.. you might have a couple problems there as chanserv has a range of default chanserv settings. i will list them below for you.

�User access levels

�By default, the following access levels are defined:

� Founder Full access to ChanServ functions; automatic
� opping upon entering channel. Note
� that only one person may have founder
� status (it cannot be given using the
� ACCESS command).
� 10 Access to AKICK command; automatic opping.
� 5 Automatic opping.
� 3 Automatic voicing.
� 0 No special privileges; can be opped by other
� ops (unless secure-ops is set).
� <0 May not be opped.

�These levels may be changed, or new ones added, using the
�LEVELS command; type /ChanServ HELP LEVELS for
�information.

level 5 like what you have used is equal to AOP, level 10 is SOP

 Respond  
Aucun50   -  May 07, 2009

You could put some checks in there, also use elseif maybe.

 Respond  
sunslayer   -  May 07, 2009

well for

  if ($1 == !kick*) kick $chan $2-

ur gonna want

  if ($1 iswm !kick*) kick $chan $2-

unless u want to type !kick* Nick :p

 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.