Join message

By HoNdAx707 on Oct 19, 2007

set a join message and when you join a channel it shows up :D
btw first script tell me how it is :o
Alt + R add to remotes :D
and also voices people :)

on *:text:*:#: { 
  if ($istok(!sjoin !setjoin,$1,32)) { 
    if ($2 != $null) { 
      writeini joinmessage.ini joinmessage $nick  $2-
      msg $chan $nick $+ , Your join message has been set. To view it Type !vjoin.
    } 
    else Notice $Nick Syntax: !setjoin/!sjoin <message> 
  }
  if ($istok(!vjoin !viewjoin,$1,32)) { 
    if ($2 != $null) { 
      if ($readini(joinmessage.ini,joinmessage,$2) == $null) { 
        msg $chan No join message for $2 is found.. 
      }
      else msg $chan [ $+ $2 $+ ] $readini(joinmessage.ini,joinmessage,$2)
    } 
    else { 
      if ($readini(joinmessage.ini,joinmessage,$nick) == $null) { 
        msg $chan You dont have a join message.. D; !sjoin to add one. 
      }
      else msg $chan [ $+ $nick $+ ] $readini(joinmessage.ini,joinmessage,$nick)
    }
  } 
  if ($istok(!deljoin !djoin,$1,32)) { 
    if ($readini(joinmessage.ini,joinmessage,$nick) = $null) { 
      msg $chan You don't even have a join message retard.
    }
    else {
      remini joinmessage.ini joinmessage $nick 
      msg $chan Your join message has been deleted $nick $+ .
    }
  }
  if $istok(!help !commands,$1,32) { 
    notice $nick Commands are: !sjoin !setjoin !viewjoin !vjoin !djoin !deljoin 
  }
} 
on *:join:#: {
  mode $chan +v $nick 
  if ($readini(joinmessage.ini,joinmessage,$nick) != $null) { 
    msg $chan [ $+ $nick $+ ] $readini(joinmessage.ini,joinmessage,$nick) 
  }
  else notice $Nick You don't have a join message type !sjoin to make one. 
} 

Comments

Sign in to comment.
guest598594   -  Nov 01, 2008

Well the bot wouldn't be able to set the text because it uses an on text. But the bot would notice itself that it doesn't have one. To fix it so it just does it for other people, you'd do "on **!***:join:#:{"

 Respond  
AdamRock   -  Nov 01, 2008

so when YOU/your bot joins the chat it says something?

 Respond  
HoNdAx707   -  Oct 19, 2007

this is just a join message script... not anything to do with op or stuff.. just auto voice lol...

 Respond  
guest598594   -  Oct 19, 2007

wait nvm i guess it duz

 Respond  
guest598594   -  Oct 19, 2007

if ($2) {
if (!$2) {


tippy, what duz that have to do with an auto greet? :/

 Respond  
cantseeme   -  Oct 19, 2007

on !*:JOIN:#: {
msg $nick I AM 1337
msg $chan I AM 1447
}

^^ you can not have if $nick isop $chan because on a join they can not be op\'ed as they are just joining the channel. And you don\'t want to message yourself when you join... If you really want to make this better make it so it does not do it more then once a hour or something. (to prevent floods)

 Respond  
HoNdAx707   -  Oct 19, 2007

yeah, later on ill work on a modlist sorta thing

 Respond  
Tippy   -  Oct 19, 2007

You can also do..

Code:

on *:Join:#: {
/msg $nick Welcome to $chan
/msg $chan Welcome to $chan
if ($nick isop $chan) { msg $chan Moderator $nick has just signed in. }
}
}

 Respond  
HoNdAx707   -  Oct 19, 2007

Fixed thanks
and i didnt know about that ill work on that later

 Respond  
Freckle   -  Oct 19, 2007

Ok, you\'ve done a nice job. You might also want to mention that it also voices the person that joins.
Bug:

if $readini(joinmessage.ini,joinmessage,$nick) != $null) {
msg $chan $readini(joinmessage.ini,joinmessage,$nick)
}

You forgot a ( :

if ($readini(joinmessage.ini,joinmessage,$nick) != $null)

What I do is just this: if ($2) or if ($readini(joinmessage.ini,joinmessage,$nick)) which just checks if it won\'t return as $null

 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.