View previous topic :: View next topic |
Author |
Message |
nytram Voice
Joined: 23 Sep 2005 Posts: 8
|
Posted: Sat Oct 01, 2005 12:08 pm Post subject: sticky topic? |
|
|
Hi,
Im new to using eggdrop. What i was wondering is - is there a way to keep the topic in my channel, even when the bot goes down and restarts with crontab? |
|
Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Sat Oct 01, 2005 12:26 pm Post subject: |
|
|
while the bot is online - yes, with a script that would reset topic with the sticky one if someone changes it
while the bot is offline (restarting) - no; but once connected, it could reset the topic _________________ connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use [code] tag when posting logs, code |
|
Back to top |
|
 |
nytram Voice
Joined: 23 Sep 2005 Posts: 8
|
Posted: Sat Oct 01, 2005 1:26 pm Post subject: |
|
|
while the bots offline isnt a problem, i just want it to set the topic when it gets back
further to your post i did a search on the tcl archive of egghelp.org under "topic" and it came up with quite a few scripts that seemed to do what i wanted. so far ive tried 3 but they arent working
i use dcc chat to login into my bot, use the .topic command to set the topic i want, and then kill/restart the bot, but when it gets back it doesnt set the topic to the one i chose
can you recommend a script that will work?
thanks,
martyn |
|
Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Sat Oct 01, 2005 4:07 pm Post subject: |
|
|
no I can't, but this should do:
Code: |
bind join - * foo
bind mode - "% +o" foo
proc foo args {
if {$::lastbind == "*"} {set i 0} {set i 5}
set n [lindex $args $i]; set c [lindex $args 3]
if {[isbotnick $n]} {putserv "topic $c :your sticky topic here"}
}
|
_________________ connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use [code] tag when posting logs, code |
|
Back to top |
|
 |
nytram Voice
Joined: 23 Sep 2005 Posts: 8
|
Posted: Sun Oct 02, 2005 11:40 am Post subject: |
|
|
works a treat thankyou |
|
Back to top |
|
 |
|