Originally Posted By: Panic
Well i need a script making my bot is set to auto join and i want so when i enter a channel that someone has invited my bot to it and if i don't want to the bot to auto join that channel anymore i want if Panic and trollman118 say !stopjoin in that channel we don't want the bot to join anymore it will say the bot called CrazyMan in the channel I will not longer join this room on invite anymore! and leave the channel and never join the channel on invite again i know this can be done because a friend of mine has done it but he won't give me the script this script will be put in my bot

Thank you so much if you can do this!

Thank you
Panic
ctcwcu head


Simple and fast we can go complicated if you want but tis not needed.

Code:
on *:INVITE:#:{
  if ($wildtok(%c.inv,$+(*,$right($chan,-1),*),1,32)) { part $chan | halt }
}

on *:TEXT:*:#:{
  if ($1 == !stopjoin) && ($nick == trollman118) || ($nick == Panic) {  %c.inv = %c.inv $right($chan,-1) | msg # I will no longer join this room on invite anymore! }
}


In the first snipplet I used part $chan | halt part $chan might not be needed but its there for you to play around with.

Also you can use write/read commands to file or hash in order to store the channels in them rather then var's but if you continue using a variable as is then in return I would make a var lenght check always and if reaches x amount to make a new var.

Therefore I suggest writting to file you'll just have to change a few things not much.

thumbs up