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 ]
}
}
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
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.