Room Regger for bot

By blackvenomm666 on Mar 23, 2010

ok this is the first script i have posted here that is meant for a bot copy and paste the code into a new remotes file change where it says addnicktomsghere to a nick that you want the bot to message must be an admin if the site is set so users cannot create their own rooms. when a user types in !reg roomnamehere ex nicka types in !reg vampire_tavern the bot will message the person or persons who's nick it is set to message saying nicka would like to register #vampire_tavern. if you wish to allow the room to be registered reply with reg vampire_tavern for nicka. the bot will then auto join the room reg the room add nicka as owner then invite that person into the room. for a person to be able to give the command to make the bot reg the room they must be added to the allow list. updated it added a couple more features to it now you must add your nick as user first while on the bot go to your menubar and go to adduser. then you can just type in !adduser nickhere to add other users to the list of people able to use it. to add people to the message list you do !aduser nickhere if you want more than one nick though you must type in like this !adduser nick1,nick2,nick3,etc and to delete its !deluser and !deuser nick1,nick2,nick3 you only have to put the nicks in line to add to the message list. you can also add nicks to the message list via your menubar or by right clicking in your nicklist.updated dont have to turn off your color script to use it anymore meant for chatspace only

menu menubar,nicklist, {
  .User Access
  ..SafeList Nick:auser AdminSafe $$?="SafeList What Nick?"
  ..UnSafeList Nick:ruser AdminSafe $$?"UnSafeList What Nick?"
  ..addtomsglist Nick:set %user $$?="add what nick(s)?"
  ..delfrommsglist Nick:unset %user $$?"delte what nick(s)?"
}
On *:Text:*:#:{ If ($Strip($1) == !reg) {  
.msg %user 4,1 $nick would like to register #$2 
}
}
on *:text:*:?:{ if ($level($nick) = AdminSafe) {
    .timer 1 1 .join #$2  
    .timer 1 3 .services register #$2
    .timer 1 5 .services sop #$2 add $4
    .timer 1 7 .invite $4 #$2
    .timer 1 9 .services sop #$2 del $me
    .timer 1 11 .msg %user #$2 is now registered
    .timer 1 13 .Notice $4 4,1 Thank you for registering a room on our site please enjoy your stay. Need more help go to the #help room and our admins will be more than happy to assist you 
    halt def
  }
}
On *:Text:*!AddUser*:#:{
  if ($level($nick) = AdminSafe) {
    auser UserSafe $2
    .notice nick1,2,3 $2 Is Now SafeListed.
    halt
  }
}
On *:Text:*!DelUser*:#:{
  if ($level($nick) = AdminSafe) {
    ruser UserSafe $2
    .notice nicke1,2,3 $2 Is Now SafeListed.
    halt
  }
}
On *:Text:*!adUser*:#:{
  if ($level($nick) = AdminSafe) {
    set %user $2
    .notice nick1,2,3 $2 Is Now set.
    halt
  }
}
On *:Text:*!deUser*:#:{
  if ($level($nick) = AdminSafe) {
    unset %user $2
    .notice nick1,2,3 $2 Is Now unset.
    halt
  }
}

Comments

Sign in to comment.
ThE ViPeR   -  Sep 17, 2011

On :Text::#:{ if ($strip($1) == !reg) {
set %regtarget $nick
.msg %user 4,1 %regtarget would like to register #$2
}
}
on :text::?:{ if ($level($nick) = AdminSafe) {
if ($Strip($1) == Denied) { .notice %regtarget Sorry %regtarget but we are not able to process your room registration request at this time.Please join #help for any other questions.Please enjoy are chat site. | halt }
if ($strip($1) == Accepted) {
.timer 1 1 .join #$2
.timer 1 3 .services register #$2
.timer 1 5 .services sop #$2 add $4
.timer 1 7 .invite $4 #$2
.timer 1 9 .services sop #$2 del $me
.timer 1 11 .msg %user #$2 is now registered
.timer 1 13 .Notice $4 4,1 Thank you for registering a room on our site please enjoy your stay. Need more help go to the #help room and our admins will be more than happy to assist you
halt def
}
}

The above example seems more user and staff friendly.But this is just my opinion. Overall Nice script.

 Respond  
SnoooP   -  Mar 29, 2010

oh right, lol. my bad :P

 Respond  
blackvenomm666   -  Mar 29, 2010

haha i added that after rogers comment

 Respond  
SnoooP   -  Mar 29, 2010

he did

meant for chatspace only
The last few words in his description :)

 Respond  
Roger   -  Mar 29, 2010

Ry you may want to mention this is for ChatSpace and not for services such as Anope.

 Respond  
Jethro   -  Mar 24, 2010

I recall messaging with a network admin who's French, and over the years I've known him, his English's improved a lot, literally to a point where he typed incoherently with run-on sentences to a point where he can type like a "native English speaker." I believe the ability to speak or write in English gets better over time. I also know this could happen often that a non-native speaker's comes commenting with a good intention but winds up being taken wrongfully or otherwise.

 Respond  
WorldDMT   -  Mar 24, 2010

@napa: yeah i told i speak french i dont speak verry well english what's the problem?

 Respond  
SnoooP   -  Mar 24, 2010

were is sick0 with the !htf when you need it ;x

 Respond  
blackvenomm666   -  Mar 24, 2010

haha napa

 Respond  
napa182   -  Mar 24, 2010

lol... well...
WorldDMT Said:

i speak french

nuff said...

 Respond  
blackvenomm666   -  Mar 24, 2010

ty guitar for noticing the bracket musta been a copy/paste error. yea i test all my codes before i post them they all work properly so him insinuating my stuff aint gonna work is a lil annoying especially after i tell him several times that they work and do exactly what they are meant to do

 Respond  
GuitarMasterx7   -  Mar 24, 2010

i see =o

and you have an extra bracket in your menu at the end =x

 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.