Jump to content

Newbie Script Request


oosho

Recommended Posts

I have no idea how to write scripts but i can learn from patterns easily.

I need my bot to do the following:

1- welcome users as soon as they join the room with a massage that can be edited later on.

2- assign levels to users of my choice to be exempted from recieving the welcome madsage and recieve a different one that also can be edited later on.

3- add and remove users to the above list with remote commands.

4- to respond to remote commands to op,deop,kick,kick and ban users with remote commands.

Thank you very much

Link to comment
Share on other sites

  • 3 weeks later...

Wow i have not done scripting for a very long time :)

 

so on join message

on *:JOIN:#: /msg $nick Hello, Welcome to our channel

Remote Kick

on *:text:!kick:#:{
kick # $1}

If i remember correctly the op, deop, ban etc will depend if your are on ircd or ircx

 

One of the guys that still does this sort of stuff will be ale to help :)

Link to comment
Share on other sites

For the greet you could do something like

#persongreet on
on *:START:{
  window @SetGreet
  titlebar @SetGreet SetGreet Recorder
  echo -a  Display All The SetGreet Greetings That Are Set
  echo -a  To Delete A Greet That Has Been Set Hit ALT+R And GoTo The Variables tab
}
on *:TEXT:*!setgreet*:#: {
  set %personal.greet $+ $nick $2-
  echo @SetGreet 9 $+ $fulldate $+ 4 $nick $+ 7 $+ ! $+ 08 $+ $address 9 Greet that was set : 4 $2- 
  msg $nick $nick Your Personal Greet Has Been Set To: $2-
}
on *:JOIN:#: {
  if ($nick == $me) halt 
  if (Guest isin $nick) halt
  if (%personal.greet [ $+ [ $nick ] ] == $null) { msg # (*) $nick Get A Greet! (*) !setgreet (text) (*)  }
  else {
    msg $chan %personal.greet [ $+ [ $nick ] ] 
  }
}
#persongreet end

and then your members can add there own greet witch will be echoed to a window in the bot so it can be monitored, you could then add a switch to it like....

-
  Room Stuff
  .Personal Greets ( $+ %persongreet $+ )
  ..On:/enable #persongreet | set %persongreet On | /msg $chan  Personal Greetings are now on | /echo 0,12 Personal Greetings 0,94 Loaded !
  ..Off:/disable #persongreet | set %persongreet Off | /msg $chan   Personal Greetings are now off | /echo 0,12 Personal Greetings 0,4 Unloaded !
  .-

There are many ways to add in a greet , i hope this helps you :lolwave:

 

add the greet script to remots and add the switch script to the popups channel or menu bar. This has come from a personal script i still use and i have many games added. My switch file is added to remotes so you could do that as well, you could add it like...

 

Menu menubar {
-
switch to add
.personalgreet
or so on.
Edited by Groovyaxis2
Link to comment
Share on other sites

  • 1 year later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...