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.

sticky topic?

Old posts that have not been replied to for several years.
Locked
n
nytram
Voice
Posts: 8
Joined: Fri Sep 23, 2005 5:56 pm

sticky topic?

Post by nytram »

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?
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

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: Select all

 tag when posting logs, code
n
nytram
Voice
Posts: 8
Joined: Fri Sep 23, 2005 5:56 pm

Post by nytram »

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
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

no I can't, but this should do:

Code: Select all

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: Select all

 tag when posting logs, code
n
nytram
Voice
Posts: 8
Joined: Fri Sep 23, 2005 5:56 pm

Post by nytram »

works a treat thankyou
Locked