Simple mode setting

By Nachos on Dec 27, 2006

It's pretty simple. You just type .mode . Any mode goes, including excepts and bans and so on. It also accepts multiple modes at once, like .mode +bb nick1!@ nick2!@ or something like that. Oh, and before you start, be sure to right click and click "Modescript allowed nick", then enter the nick you want the bot to set as 'allowed'. Then have fun. ;)

menu * {
  Modescript allowed nick: set %acceptednick $?"What nick would you like to be in command of the mode setting?"
}

on *:TEXT:.mode *:#: {
  if ($nick == %acceptednick) {
  mode $chan $2- }
  elseif ($nick != %acceptednick) {
    notice $nick You don't have the specified rights to control me!
  }
}

Comments

Sign in to comment.
Disturbed   -  Dec 30, 2006

heh

 Respond  
Setever   -  Dec 30, 2006

I think making it $addtok would\'ve been much more effective than having only ONE person who could control it.

 Respond  
Nachos   -  Dec 28, 2006

Lindrian; I only had ONE in this one ;D Getting better and better, lol. And it was an accident.

FURBY; Yeah. I know. I just made this script in somewhat 3 minutes. Didn\'t even think of adding a menu, which I have just done. And going to edit it right now.

 Respond  
mysterycool   -  Dec 28, 2006

Nice! Like it! You know... You could add like a \"command\" that the owner of the bot can add people to control it! For example: !add
Anyway... I still like it!

 Respond  
F*U*R*B*Y*   -  Dec 28, 2006

could also have a menu in the nicklist as the add of the allowed nick

 Respond  
Lindrian   -  Dec 27, 2006

Hehe nice, but learn to strip thoose damn / nachos :>..

 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.