| View previous topic :: View next topic |
| Author |
Message |
irate Voice
Joined: 18 Jun 2007 Posts: 8
|
Posted: Mon Jun 18, 2007 8:12 pm Post subject: Take the nick when the bot quits IRC. |
|
|
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 |
|
 |
jfb392 Voice
Joined: 08 Mar 2007 Posts: 8
|
Posted: Mon Jun 18, 2007 8:19 pm Post subject: |
|
|
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 |
|
 |
irate Voice
Joined: 18 Jun 2007 Posts: 8
|
Posted: Mon Jun 18, 2007 9:06 pm Post subject: |
|
|
| 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 |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Mon Jun 18, 2007 9:20 pm Post subject: |
|
|
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 |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
|
| Back to top |
|
 |
irate Voice
Joined: 18 Jun 2007 Posts: 8
|
Posted: Tue Jun 19, 2007 12:05 am Post subject: |
|
|
| Thanks, that's what I was looking for. |
|
| Back to top |
|
 |
|