hi here is a simple bot greet script with a text script for commands i made my 1st greet and command script i use these codes with my bot i made
on *:join:#:/msg $nick 4,1 $nick (message you want it to say)
on *:Text:!help*:#:{ notice $nick { notice $nick command | then again | }
on *:JOIN:#: {
if ($readini(setquotes.ini,NETWORK,$nick) == $network) qwho $nick $chan
}
on *:TEXT:*:*: {
tokenize 32 $strip($1) $2-
if ($1 == !delquote) {
if ($readini(setquotes.ini,NETWORK,$nick)) {
remini setquotes.ini NETWORK $nick
remini setquotes.ini QUOTE $nick
notice $nick Your quote has been successfully removed.
}
else {
notice $nick You do not currently have a quote set. Use '!setquote <quote>' to set a quote for yourself.
}
}
if (($1 == !setquote) && $2) {
writeini -n setquotes.ini NETWORK $nick $network
writeini -n setquotes.ini QUOTE $nick $2-
notice $nick Quote has been set to $2-
}
}
alias qwho {
if ($isid) return
if (!$2) halt
set %qwho $2
who $1
}
raw 352:*:{
if (%qwho && r isin $7) { msg %qwho $chr(91) $+ $6 $+ $chr(93) $readini(setquotes.ini,QUOTE,$6) | halt }
unset %qwho
}
This will allow people to set or remove there own greets with !setquote and !delquote
It also runs a check to make sure the user is identified before msg'ing the quote.
DragonFlare said:
Welcome
.add: writeini Welcome.ini $1 Nick $1
.del: writeini Welcome.ini $1 Nick No
}
on *:Join:#:{
%var = $readini(Welcome.ini,$1,Nick)
if %var = $1 { msg $chan Welcome Back $nick }
}
only says it to people you add Kirby.
Yes I know. -__-
I was just making it simpler so it wouldn't confuse him.
Kirby he also could make it to were it writes to an ini file that way it only says welcome To chan to people who are in the ini using vars like so
Menu Nicklist {
-
Welcome
.add: writeini Welcome.ini $1 Nick $1
.del: writeini Welcome.ini $1 Nick No
}
on *:Join:#:{
%var = $readini(Welcome.ini,$1,Nick)
if %var = $1 { msg $chan Welcome Back $nick }
}
only says it to people you add Kirby.
Firstly, I'm not trying to be offending towards you but, there are hundreds of 'simple bot greet to channel' scripts on Hawkee.
But you can improve some things:
on *:Text:!help*:{ notice $nick { notice $nick command | then again | }
You have a bracket mismatch there, and I really don't understand what you're doing there...
If you don't have an extra parameter after !help, then you can remove the '*' after !help.