Greet Bot

By ProIcons on Apr 01, 2009

Admin:
!greet
!greetdel
!greetedit
User:
!greetme
!greetdelme
!greeteditme
Alias:
/GreetAdmin

;Greet
on 9:text:!greet *:#:{ 
  if (!%greet. [ $+ [ $2 ] ]) {  
    if ($2 && $3) {
      set %greet. $+ $2 $3- 
      msg # Greet added Successfuly
    } 
    else {  msg # You must enter and a message }
  }
  else { 
  msg # This nick is allready on my Greet list with msg ( $+ %greet. [ $+ [ $2 ] ] $+ ) You can change it by typing !greetedit <msg> or !greetdel <nick> }

}
on 1:text:!greetme *:#:{ 
  if (!%greet. [ $+ [ $nick ] ]) {
    if ($2) { 
      set %greet. $+ $nick $2-
      msg # Greet added succesfully
    }
    else { msg # You must write and the message }
  }
  else { msg # You are allready exists to my Greet list with msg ( $+ %greet. [ $+ [ $nick ] ] $+ ) You can change it by typing !greetedit <msg> or !greetdelme

  }
}
alias rb return $regsubex($$1-,/(.)/g,$+($chr(2) $+ $chr(3),$r(2,15),$chr(2),\1))
on 1:text:!greetedelme *:#:{
  if (%greet. [ $+ [ $nick ] ]) {
    if ($2) {
      set %greet. $+ $nick $2-
      msg  # Greet Edited succesfully
    }
    else { msg # You must write and a message }
  }
  else { msg # You have no greet }
}
on 1:text:!greetedit *:#:{
  if (%greet. [ $+ [ $2 ] ]) {
    if ($2-3) {
      set %greet. $+ $2 $3-
      msg # Greet Edited succesfully
    }
    else { msg # You must write and a message }
  }
  else { msg # $2 has no greet }
}
on 1:text:!greeteditme *:#:{
  if (%greet. [ $+ [ $nick ] ]) {
    if ($2) {
      set %greet. $+ $nick $2-
      msg # Greet Edited succesfully
    }
    else { msg # You must write and a message }
  }
  else { msg # $nick You have no greet }
}
on 1:text!greetdelme:#:{
  if (%greet. [ $+ [ $nick ] ]) {
    unset %greet. [ $+ [ $nick ] ]
    msg # Your msg has been deleted
  }
  else { msg # You are not on my Greet list }
}
on 10:text:!greetdel *:#:{
  if (%greet. [ $+ [ $2 ] ]) {
    if ($3) { set %Greason $3- }
    else { set %Greason No Reason }
    unset %greet. [ $+ [ $2 ] ]
    msg # $2 Greet has been deleted from ADMIN/DJ $nick with reason ( $+ %greason $+ )
  }
  else { msg # I have no user $2 in my greet list }
}
on 1:Text:!greetmsg*:#:{
  if (!$2) { 
    if (%greet. [ $+ [ $nick ] ]) {
      msg # Your Greet is: %greet. [ $+ [ $nick ] ]
    }
    else { msg # You Have no Greet }    
  }
  else { 
    if (%greet. [ $+ [ $2 ] ]) {
      msg # $rb($2) $+ 's Greet is: %greet. [ $+ [ $2 ] ]
    }
    else { msg # $rb($2) $+  Has no Greet }  
  }
}
alias GreetAdmin {
  if ($1 != $null) {
    auser 10 $1
  }
  else { echo $color(info) * /GreetAdmin: insufficient parameters }
}
on *:join:#:{ if (%greet. [ $+ [ $nick ] ]) { msg # 3(4 $+ $nick $+ 3) $rb(%greet. [ $+ [ $nick ] ]) } }
on *:text:!ghelp:#:{ if ($ulevel == 1) { notice $nick !greetme <msg> /\ !greetdelme /\ !greeteditme <msg> } | if ($ulevel > 9) { notice $nick !greetme <msg> /\ !greetdelme /\ !greeteditme <msg> /\ !greetedit <nick> <msg> /\ !greetdel <nick> (reason ( if you want)) /\ !greet <nick> <msg> } }

Comments

Sign in to comment.
Callumlord   -  Mar 12, 2011

Wohhh People can edit others Greets :( can I change this so only the person and a admin can change it?

 Respond  
falconr3   -  Mar 19, 2010

thx

 Respond  
ProIcons   -  Mar 14, 2010

replace this

on *:join:#:{ if (%greet. [ $+ [ $nick ] ]) { msg # 3(4 $+ $nick $+ 3) $rb(%greet. [ $+ [ $nick ] ]) } }

with this

on *:join:#:{ if (%greet. [ $+ [ $nick ] ]) { msg # 3(4 $+ $nick $+ 3) %greet. [ $+ [ $nick ] ] } }
 Respond  
falconr3   -  Mar 11, 2010

how do i remove the colors?

 Respond  
Jethro   -  Mar 10, 2010

i dont like the random colorsIf a script doesn't suit your needs, you can modify it to your liking.

 Respond  
jackster35-1   -  Mar 10, 2010

i dont like the random colors

 Respond  
PATX   -  Apr 21, 2009

rating: 3 (not useful)
reason: not useful. could just type in a greating....

 Respond  
napa182   -  Apr 01, 2009

im more then happy to help you as well and if you need help you can stop by /server -m irc.ezzychat.com and join #lobby im always on that server...

 Respond  
NIGathan   -  Apr 01, 2009

Hash tables are really easy to pick up, they are similar to .ini files, but much much faster

Check out the '/help hash tables' section of the hash table, and if you need any help or have questions, I would be more than happy to help

Edit: oops..

Check out the '/help hash tables' section of the help file, and if you need any help or have questions, I would be more than happy to help*

 Respond  
ProIcons   -  Apr 01, 2009

Well i don't know anything about hash tables.

 Respond  
napa182   -  Apr 01, 2009

you should think about useing hash tables for this cuz you will end up filling ur var list.

 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.