This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.
For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message. 
	 
Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
			
		
				
			- 
				
								minted							
 
						- Halfop
 			
		- Posts: 64
 		- Joined: Wed Jul 20, 2005 9:58 am
 		
		
						
						
		
		
						
					
													
							
						
									
						Post
					
								by minted » 
			
			
			
			
			
			as the title says, my bots an admin, and can op itself without using any services.
i want it to auto op itself on joining every chan.
			
			
									
						
										
						 
		 
				
		
		 
	 
				
		
				
			- 
				
								whittinghamj							
 
						- Op
 			
		- Posts: 103
 		- Joined: Sun May 21, 2006 4:50 pm
 		
		
						
						
		
		
						
					
						
		
													
							
						
									
						Post
					
								by whittinghamj » 
			
			
			
			
			
			i will try and find the one i wrote.
but its an svsjoin command.
			
			
									
						
										
						 
		 
				
		
		 
	 
				
		
				
			- 
				
								whittinghamj							
 
						- Op
 			
		- Posts: 103
 		- Joined: Sun May 21, 2006 4:50 pm
 		
		
						
						
		
		
						
					
						
		
													
							
						
									
						Post
					
								by whittinghamj » 
			
			
			
			
			
			Here you go buddy
it was svjoin not svsjoin but blah - i am tired.
Code: Select all
bind join - * svjoin 
proc svjoin {nick uhost hand chan} { 
 global botnick 
    if { $nick == $botnick } { 
        putquick "samode $chan +o $botnick" 
    } 
} 
your bot MUST be ircop'd first for this to work.
 
			
			
									
						
										
						 
		 
				
		
		 
	 
				
		
				
			- 
				
								minted							
 
						- Halfop
 			
		- Posts: 64
 		- Joined: Wed Jul 20, 2005 9:58 am
 		
		
						
						
		
		
						
					
						
		
													
							
						
									
						Post
					
								by minted » 
			
			
			
			
			
			thats not what im after
we dont have sajoins or samodes or anything like that on our server.
but ur code was very helpful 

 thank you.
i worked it out from there.
Code: Select all
bind join - * opself
proc opself {nick uhost hand chan} {
 global botnick
    if { $nick == $botnick } {
        putquick "mode $chan +o $botnick"
    }
}
does this look cool? it works, so im not complaining
 
			
			
									
						
										
						 
		 
				
		
		 
	 
				
		
				
			- 
				
								caesar							
 
						- Mint Rubber
 			
		- Posts: 3778
 		- Joined: Sun Oct 14, 2001 8:00 pm
 		
		
											- Location: Mint Factory
 
							
						
		
		
						
					
						
		
													
							
						
									
						Post
					
								by caesar » 
			
			
			
			
			
			Why don't you use the 'isbotnick' thing?
			
			
									
						
							Once the game is over, the king and the pawn go back in the same box.
			
						 
		 
				
		
		 
	 
				
				
		
				
			- 
				
								minted							
 
						- Halfop
 			
		- Posts: 64
 		- Joined: Wed Jul 20, 2005 9:58 am
 		
		
						
						
		
		
						
					
						
		
													
							
						
									
						Post
					
								by minted » 
			
			
			
			
			
			caesar wrote:Why don't you use the 'isbotnick' thing?
cos i dont have a clue what that is  
 
im a newb with coding tcl
took me long enough to learn .mrc scripting.
care to help? 

 
			
			
									
						
										
						 
		 
				
		
		 
	 
				
		
				
			- 
				
								DragnLord							
 
						- Owner
 			
		- Posts: 711
 		- Joined: Sat Jan 24, 2004 4:58 pm
 		
		
											- Location: C'ville, Virginia, USA
 
							
						
		
		
						
					
						
		
													
							
						
									
						Post
					
								by DragnLord » 
			
			
			
			
			
			bind join - * join:op
proc join:op {n u h c t} {
putserv "MODE $chan +o $::botnick"
}
			
			
									
						
										
						 
		 
				
		
		 
	 
				
		
				
			- 
				
								Alchera							
 
						- Revered One
 			
		- Posts: 3344
 		- Joined: Mon Aug 11, 2003 12:42 pm
 		
		
											- Location: Ballarat Victoria, Australia
 
												
							- 
				Contact:
				
			
 
				
		
		
						
					
						
		
													
							
						
									
						Post
					
								by Alchera » 
			
			
			
			
			
			minted wrote:caesar wrote:Why don't you use the 'isbotnick' thing?
cos i dont have a clue what that is  
 
im a newb with coding tcl
took me long enough to learn .mrc scripting.
care to help? 

 
Try 
reading tcl-commands.doc.
 
			
			
									
						
							Add [SOLVED] to the thread title if your issue has been.
Search | 
FAQ | 
RTM 			
						 
		 
				
		
		 
	 
				
		
				
			- 
				
								sKy							
 
						- Op
 			
		- Posts: 194
 		- Joined: Thu Apr 14, 2005 5:58 pm
 		
		
											- Location: Germany
 
							
						
		
		
						
					
						
		
													
							
						
									
						Post
					
								by sKy » 
			
			
			
			
			
			DragnLord wrote:bind join - * join:op
proc join:op {n u h c t} {
putserv "MODE $chan +o $::botnick"
}
Not very wise without the if check. The bot will send eachtime a message to the server if anyone joins. How the bot can op itself? It`s a ircop?
 
			
			
									
						
										
						 
		 
				
		
		 
	 
				
		
				
			- 
				
								DragnLord							
 
						- Owner
 			
		- Posts: 711
 		- Joined: Sat Jan 24, 2004 4:58 pm
 		
		
											- Location: C'ville, Virginia, USA
 
							
						
		
		
						
					
						
		
													
							
						
									
						Post
					
								by DragnLord » 
			
			
			
			
			
			darn good point, this "should" be sufficiant for check
Code: Select all
bind join - * join:op
proc join:op {n u h c t} {
  if {[isbotnick $n]}{
    putserv "MODE $chan +o $::botnick"
  }
}
minted stated that the bot is opered