!Join and !Leave script

Platform:  mIRC
Published  Nov 24, 2009
Updated  Nov 24, 2009
Use !Join #Channelnamehere

And !leave to leave with your bot

And my simple !op namehere and !deop namehere :)






FIRST SCRIPT!


on *:TEXT:!join*:#: {
join $2
}
on *:TEXT:!leave*:#: {
part $chan
}
on *:TEXT:!op*:#: {
if ($nick isop $chan) (
mode $chan +o $2
}
on *:TEXT:!deop*:#: {
if ($nick isop $chan) (
mode $chan -o $2
}

Comments

Sign in to comment.
ProIcons   -  Dec 21, 2009
when bot leave the channel if you type !join it will not see it..
 Respond  
mytvnetwork   -  Dec 21, 2009
The !leave command works, but I can't get the !join command to work for some reason.
 Respond  
skylife_805eh   -  Dec 20, 2009
and also i am new to this can someone show me a exsample on how to add a message like- !join skylife....... joining skylife;s channel be right there or something like that thinks again
 Respond  
skylife_805eh   -  Dec 20, 2009
i got it to join a channel when they go in my justin.tv room but it bumps me into another room can anyone HELP me plzzzzzzzz thanks !!!
 Respond  
ProIcons   -  Nov 30, 2009
1st and 2nd must be in userlist one Admin:NICK and then with the command !add you can add more Admin: and OP:

The OP Can be !op and !deop like Admin
The Admin Can be !op and !deop and !add admin/op.

3rd

The nick with the level 3:Nick can add new admin (!add) can (!op and !deop)
The 2:Nick can be only !op and !deop
 Respond  
SnoooP   -  Nov 29, 2009
Proclons care to explain what they do? Some people won't have any idea?
 Respond  
ProIcons   -  Nov 29, 2009
Code
 

Or
Code
 

Or
Code
 

 Respond  
Master-Of-Death   -  Nov 29, 2009
ty I have my moments lol, few but I have them although Jethro_ or gooshie probably coul do better...
 Respond  
SnoooP   -  Nov 29, 2009
Good suggestion Master-Of-Death
 Respond  
Master-Of-Death   -  Nov 27, 2009
you would be better using user levels. you could use this..
Code
 


Now it will op you. just type !reg after first loading it.
 Respond  
SnoooP   -  Nov 27, 2009
thanks for pointing that out I didn't notice that, however, even though there is a space inbetween the else & if it still functioned lol.

Code
 

it !deops me but because i'm not op doesn't op me lol, so even though there is a space, it still works?
 Respond  
Master-Of-Death   -  Nov 27, 2009
I see ur point oh btw you have a space between ur elseif on line 4 snoop.
 Respond  
SnoooP   -  Nov 26, 2009
Code
 


That would be how I would do it?

Rather than having an on @*:text:*:*:{ event I prefer for it just to check if $nick isop $chan.

Regarding the one text event, it can be one or four, it doesn't matter. I would just say it is uneccessary to have more than one if it can be helped. Although I do realise some people prefer to have an on text event for each command/trigger because it looks neater. Having one is just my preference.

Also considering it is this users first script try not to be too harsh as it may discourage them from making further scripts, & explain why you would or wouldn't do certain things and how different things would work. Oh yeah, it works the way it is so good job!
 Respond  
Master-Of-Death   -  Nov 26, 2009
it should only be one text event more than one is pointless and wastes time, also you NEED brackets otherwise it can cause multiple errors especially in large scripts, the next thing is one line scripts they are pointless and harder to correct any errors i advise you to consider using meditor for coding it is simple but very effective.
 Respond  
ProIcons   -  Nov 25, 2009
Code
 


Should Be
Code
 
 Respond  
blitzz   -  Nov 24, 2009
Code
 


Should be

Code
 


You need to check if you are channel operator.

Ghost-Writer, i don't think by removing the {} can make it better. As Neptune stated, it makes the code more easier to read. Expert coder also use it. You make it more ugly. I think you know why the Author of mIRC create { and }.
 Respond  
^Neptune   -  Nov 24, 2009
{ } brackets make a program run faster and make it easier to read, don't remove them. Stop giving bad advice Ghost-writer. :B
 Respond  
Ghost-writer   -  Nov 24, 2009
to be honest you dont need to use 1 text event but you could make it better, like 1 line, no need to {} abuse.
Code
 

could be used better like so,
Code
 
 Respond  
Cracker200   -  Nov 24, 2009
^
 Respond  
Master-Of-Death   -  Nov 24, 2009
why use four on text events why not just use:
Code
 

see my point?
 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.