Greet Script

By jackster35-1 on Apr 13, 2010

This is a little greet code i made for you here are the commands:

!greet (greet)
!delgreet
!greeton (Allow greets for that channel.)
!greetoff (Turns greets off for that channel.)

I hope you like it and also please dont take credit because i put alot of work on making it, Thanks.

If you have anyproblems with it goto irc.geekshed.net then the channel #thebots
or visit our site at
http://thebots.co.cc/ Thanks.

;;;;;;;;;;;;;;;;;;;
;;; Greet Code ;;;;
;;;  Coded by  ;;;;
;;; Jackster35 ;;;;
;;;;;;;;;;;;;;;;;;;

on *:TEXT:*:#:{
  if ($1 == !greet) {
    if (% [ $+ [ $nick ] $+ greet ] == yes) {
      msg $chan Sorry $nick but you already have a great, to get a new one type !delgreet
      HALT
    }
    else {
      msg $chan Setting Greet for $nick to $2-
      set % [ $+ [ $nick ] $+ nickgreet ] $2-
      set % [ $+ [ $nick ] $+ greet ] yes
      msg $chan Greet all set to $2-
    }
  }
}
if ($1 == !greetoff) {
  if ($nick isop #) {
    msg $chan Disabling greets for $chan
    set % [ $+ [ $chan ] $+ greetstat ] off
    msg $chan Greets are now disabled for $chan
  }
}
if ($1 == !greeton) {
  if ($nick isop #) {
    msg $chan Enabling greets for $chan
    unset % [ $+ [ $chan ] $+ greetstat ]
    msg $chan Greets are now enabled for $chan
  }
}
if ($1 == !delgreet) {
  if (% [ $+ [ $nick ] $+ greet ] == yes) {
    msg $chan Deleting greet for $nick
    unset % [ $+ [ $nick ] $+ greet ]
    unset % [ $+ [ $nick ] $+ nickgreet ]
    msg $chan Your greet has been successfully deleted.
  }
}
on *:TEXT:!info:#:{
  msg $chan Greet code by: Jackster35
}
on *:JOIN:#:{
  if (% [ $+ [ $chan ] $+ greetstat ] == off) { HALT }
  if (% [ $+ [ $nick ] $+ greet ] == yes) {
    msg $chan 4[11 $+ $nick $+ 4] % [ $+ [ $nick ] $+ nickgreet ]
  }
}

Comments

Sign in to comment.
Almost_Paradise   -  Apr 10, 2016

Okay as it is written I turned it on and it never messaged it was on. I accidently set my own greet to on, now it wont respond to !delgreet and does not msg the chan that it is or has deleted the greeting. so when I try to change my greet it does tell me I've got one and to use !delgreet to remove it but nothing else is working at this point

 Respond  
napa182   -  Apr 15, 2010

as to what Scakk said about them changing nicks you should use $wildsite instead of $nick

 Respond  
WorldDMT   -  Apr 15, 2010

line 12 i think u have to remove one "}" and add one at the end of event

Suggestion: !greetoff & !greeton can be in a same condition

 Respond  
jackster35-1   -  Apr 15, 2010
  1. Ive changed it to a better layout 2. A oper would see your nick changing to lots of nicks and will ban you from the network =/
 Respond  
Scakk   -  Apr 15, 2010

On the !delgreet one you left out a % in an unset line.

Also the way it is set up is that I could switch to different nicks and delete all the greets that set.

 Respond  
jackster35-1   -  Apr 15, 2010

napa182 thats what im doing now.

 Respond  
napa182   -  Apr 14, 2010

you should really go with hash for this, also add all the text events into one.

 Respond  
jackster35-1   -  Apr 14, 2010

sigh go on post comments then if thats what you would like to do and add stuff to it, be my guest -.-

 Respond  
Jethro   -  Apr 13, 2010

The main advantage of being commented upon is, not only can you get ideas on various ways of going about your script, you can also learn new scripting skills from other people...something they know that you don't.

In any event, Hawkee can easily implement a feature that will disable comments. You do have the right to delete any comment you wish.

 Respond  
WorldDMT   -  Apr 13, 2010

if you dont want comments then dont post
because you have not imposed that we post

 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.