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.

Take the nick when the bot quits IRC.

Help for those learning Tcl or writing their own scripts.
Post Reply
i
irate
Voice
Posts: 8
Joined: Mon Jun 18, 2007 9:36 am

Take the nick when the bot quits IRC.

Post by irate »

I want the bot to take the nick whenever etari quits IRC, is that possible?

Code: Select all

proc quit:user {nick {nick uhost hand chan} {
if {$nick == "etari"} && {$host == "*!*@etari.*"}
if { [regexp {etari has left IRC} [string tolower $text]] } {
putserv "NICK etari"
}
Last edited by irate on Mon Jun 18, 2007 8:19 pm, edited 1 time in total.
j
jfb392
Voice
Posts: 8
Joined: Thu Mar 08, 2007 8:29 pm

Post by jfb392 »

Can you force Eggdrop to change nicks?
I've never tried it.

I'm guessing you could probably set the bots default nick as etari, then if it's in use, it will go to an alternate nick.

Then, you could probably have it execute .restart every time it finds "etari has quit IRC".
Only problem is, I don't know if Eggdrop sees quits the same as you do on mIRC.
i
irate
Voice
Posts: 8
Joined: Mon Jun 18, 2007 9:36 am

Post by irate »

Well actually, I don't want to login into the telnet every time it quits or rejoins, I want the bot to do it automatically.
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

eggdrop.conf:
# Set the nick the bot uses on IRC, and on the botnet unless you specify a
# separate botnet-nick, here.
set nick "Lamestbot"

# Set the alternative nick which the bot uses on IRC if the nick specified
# by 'set nick' is unavailable. All '?' characters will be replaced by random
# numbers.
set altnick "Llamab?t"
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

Try jupe.tcl from the Tcl archive.
i
irate
Voice
Posts: 8
Joined: Mon Jun 18, 2007 9:36 am

Post by irate »

Thanks, that's what I was looking for.
Post Reply