Hm... what are you trying to make it do?
Right now, it will do this:
User: .join mychan
Bot: Read in a random nick from users.txt file and then message that random nick with "join mychan"
If you want it to message all users in your channel when a level 2000 user types the command (easy way to get kicked for flooding), you can use a while loop and use $chan(#,%i).
Example:
set %i 1
while (%i <= $chan(#,0)) {
msg $chan(#,%i) join mychan
}
If you have many users, then you probably need to put in a delay between each msg or else you are likely to be flooded off the server.