maybe, but init:server events will send immediatly after connection to server? because getting op in a channel, which the bot joins afater the command is useless
bind join - * botjoin
proc botjoin {n u h c a} {
global botnick
if { $nick == $botnick } {
putserv "mode $c +o $botnick"
return
}
}
The lifecycle of a noob is complex. Fledgling noobs gestate inside biometric pods. Once a budding noob has matured thru gestation they climb out of their pod, sit down at a PC, ask a bunch of questions that are clearly in the FAQ, The Noob is born
Shouldnt make any difference but hey it should work ;]
Last edited by ^DooM^ on Fri Jul 08, 2005 3:55 pm, edited 1 time in total.
The lifecycle of a noob is complex. Fledgling noobs gestate inside biometric pods. Once a budding noob has matured thru gestation they climb out of their pod, sit down at a PC, ask a bunch of questions that are clearly in the FAQ, The Noob is born
Your bot must be odd cuz that last script worked ok for me.
The lifecycle of a noob is complex. Fledgling noobs gestate inside biometric pods. Once a budding noob has matured thru gestation they climb out of their pod, sit down at a PC, ask a bunch of questions that are clearly in the FAQ, The Noob is born
...
# Set what should be displayed in the real-name field for the bot on IRC.
set realname "Service Bot"
# This is a Tcl script to be run immediately after connecting to a server.
bind evnt - init-server evnt:init_server
proc evnt:init_server {type} {
global botnick
putserv "privmsg x :auth botsname botspass"
putserv "oper botsname botsoperpass"
}
bind join - "*" botjoin
proc botjoin {nick uhost hand chan} {
if { $nick == $::botnick } {
putserv "opmode $chan +o botnick"
}
}
# Set the default port which should be used if none is specified with
# '.jump' or in 'set servers'.
set default-port 6667
...
Last edited by Crack02 on Fri Jul 08, 2005 4:04 pm, edited 2 times in total.
do you realize that 2 different people are talking to you, with 2 different solutions?
are you able to differentiate between the two?
heh I thought that whilst I was writing my last post. I wonder if he/she was doing something odd and merging the two scripts together. lmao
The lifecycle of a noob is complex. Fledgling noobs gestate inside biometric pods. Once a budding noob has matured thru gestation they climb out of their pod, sit down at a PC, ask a bunch of questions that are clearly in the FAQ, The Noob is born