/prop $chan ONJOIN <put message here and remove brackets>
this is how you would set your onjoin message. /prop is the rooms properties, $chan can be a variable depending on if your have it stright in a script, or if its from the chat screen. if its from the chat screen you need to make $chan $active instead. But if your in a chatscreen it needs a double / at the front.
as for bot talk.
on *:TEXT:<word>:#: { /msg $chan <responce> }
thats all you would need to do. on * means any level, TEXT meaning any text line, <word> is what you change to have it respond. there are different variables for this. putting a * at the begining and/or end or not having it at all makes alot of difference. e.g.
hello [means that the person has to say hello only and nothing else for the code to work]
hello* [means that it has to be at the begining of the person's string]
*hello [means it has to be at the end of the person's string]
*hello* [anywhere in the person's string]
<responce> is just your plain text. for a better understanding of this all type
/help on text
in any window.