egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Take the nick when the bot quits IRC.

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
irate
Voice


Joined: 18 Jun 2007
Posts: 8

PostPosted: Mon Jun 18, 2007 8:12 pm    Post subject: Take the nick when the bot quits IRC. Reply with quote

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

Code:
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
Back to top
View user's profile Send private message
jfb392
Voice


Joined: 08 Mar 2007
Posts: 8

PostPosted: Mon Jun 18, 2007 8:19 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
irate
Voice


Joined: 18 Jun 2007
Posts: 8

PostPosted: Mon Jun 18, 2007 9:06 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Mon Jun 18, 2007 9:20 pm    Post subject: Reply with quote

eggdrop.conf:
Quote:
# 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
Back to top
View user's profile Send private message Visit poster's website
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Mon Jun 18, 2007 9:28 pm    Post subject: Reply with quote

Try jupe.tcl from the Tcl archive.
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
irate
Voice


Joined: 18 Jun 2007
Posts: 8

PostPosted: Tue Jun 19, 2007 12:05 am    Post subject: Reply with quote

Thanks, that's what I was looking for.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber