simple bot greet to channel

By xt24 on Dec 07, 2008

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

Comments

Sign in to comment.
irchainscriptz   -  Dec 08, 2008

LMAO

 Respond  
xplo   -  Dec 08, 2008

WTF, you freaks, he give a fu k i n g lame 2 line code, and you reply with some shitty 234567654323456786543456 lines code...

SMALL POSTS LIKE THESE SHOULD BE DELETED!!

 Respond  
NIGathan   -  Dec 08, 2008
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.

 Respond  
Kirby   -  Dec 08, 2008

DragonFlare said:

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
Code:
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.

Yes I know. -__-
I was just making it simpler so it wouldn't confuse him.

 Respond  
DragonFlare   -  Dec 08, 2008

Never thought of it that way Napa182

 Respond  
napa182   -  Dec 08, 2008

@DragonFlare:
why use a ini file? Unless you are going to add alot of people to the ini. Alot meaning over 100.

 Respond  
DragonFlare   -  Dec 08, 2008

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.

 Respond  
Kirby   -  Dec 07, 2008

One other suggestion: /msg often annoys people; msg'ing the channel is less annoying.
Perhaps try:

on *:join:#:{ msg $chan 4,1 Welcome to $chan, $nick $+ ! :) }

$+ is used to put together the $nick and the !

 Respond  
Kirby   -  Dec 07, 2008

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.

 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.