Powerfull remotejoin tool {BOTS ONLY}

By Bielie on Apr 10, 2010

This script is very powerfull. Dont use this if you do not know what your doing!

it works like this:

!join (Channel)

Your bot will check if it is possible to join. If it is you get a succesful notice and it will join. If it isn't you get a error and your bot wont join and the script will be halted.

Only the host of the bot can use this command so dont worrie about others outside your home network to use it! (They get a error message)

on *:TEXT:?join*:#:{
  if (!$(,$+(%,flood,$nick))) {
    set -u3 $+(%,flood,$nick)
  }

  if ($address($nick,2) != $address($me,2)) {
    notice $nick You need to be a Moderator of this bot to use this command.
    return
  }

  notice $nick 5Conneting to $2 , Please wait......

  if ($2 == $null) {
    notice $nick 4Failed14 to join the channel because you didn't provide a channel name!
    return
  }

  if ($me ison $2) {
    .timer 1 3 notice $nick 4Failed14 to join $2 because I'm already in that channel!
    return
  }
  set -u5 %!join $+ $2 $chan
  join $2
}

else {
  .timer 1 3 msg $chan 2Succesfully14 joined channel $chan 
}

on *:JOIN:#:{
  if ($eval($+(%,!join,$chan),2) != $null) {
    .timer 1 3 msg $v1 3Successfully 5joined channel $chan 
    msg $chan 14I joined this channel because it was requested by the host of this Bot.
    unset %!join $+ $chan
  }
}
raw 474:*:{
  if ($eval($+(%,!join,$2),2) != $null) {
    notice Sphex 4Failed 14to join $2 because the bot has been banned from that channel.
    unset %!join $+ $chan
  }
}
Sign in to comment.
Bielie   -  Apr 21, 2010

@p0d Thats true. I did that because i made the Raw event later so i disabled that command.

@jethro_ Thanks for that i didnt know ;)

 Respond  
Jethro   -  Apr 21, 2010

If you think regex is "bugged" for you, then you should use:

 if ($istok(!join|.join|@join,$gettok($1,1-5,124),124)) {

which is much better than using a question mark within the match text section for trigger.

 Respond  
p0d   -  Apr 21, 2010

[quote] else { .timer 1 3 msg $chan 2Succesfully14 joined channel $chan } [/quote]

I could be wrong but isn't this outside of the text event?

 Respond  
Bielie   -  Apr 21, 2010

i know that jethro. But it bugs with some of my scripts. So i use the "?". I also have some scripts with that regex indeed ;)

 Respond  
Jethro   -  Apr 21, 2010

Bielie, that's not a good way to go about the trigger. It can get triggered if I enter: njoin, 123join, blahjoin. You should use regex for this:

on $*:text:/^[.!@]join\b/iS:#:{
 Respond  
Bielie   -  Apr 21, 2010

@noutrious......

Are you serious? the "?" Stands for all common interpunction including: [.!@?]

 Respond  
Noutrious   -  Apr 17, 2010

it works like this: !join (Channel)

Seems to me as ?join...

 Respond  
Celeron   -  Apr 16, 2010

LOL napa182

 Respond  
napa182   -  Apr 11, 2010

lol they seem to have changed the description

they removed

This script is very powerful and completely written by me! and replaced it with.. Dont use this if you do not know what your doing!

well about that.. that is why the notation in the description is key. so people will know how to use it.

also you should really test ur snippets before you post them...

 Respond  
MaSOuD   -  Apr 11, 2010

Wrong brackets, move the last bracket before the 'else' to the next of it.

 Respond  
Jethro   -  Apr 11, 2010

His description, for some reason, reminds me of those shopping channels on TV, where the hosts talk with persuasion trying to talk potential customers into buying their products. lol

 Respond  
napa182   -  Apr 11, 2010

Bielie Wrote: [quote] Description This script is very powerful and completely written by me![/quote]

how is it very powerful? and u sure it's completely written by you? sorry i just found that funny you would say that in ur description.

 Respond  
Hawkee   -  Apr 10, 2010

If you can post this as a snippet please don't post it as a script. Scripts are for multiple files and media that just can't be posted as snippets.

 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.