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 

sticky topic?

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    egghelp.org community Forum Index -> Archive
View previous topic :: View next topic  
Author Message
nytram
Voice


Joined: 23 Sep 2005
Posts: 8

PostPosted: Sat Oct 01, 2005 12:08 pm    Post subject: sticky topic? Reply with quote

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
View user's profile Send private message
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Sat Oct 01, 2005 12:26 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
nytram
Voice


Joined: 23 Sep 2005
Posts: 8

PostPosted: Sat Oct 01, 2005 1:26 pm    Post subject: Reply with quote

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
View user's profile Send private message
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Sat Oct 01, 2005 4:07 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
nytram
Voice


Joined: 23 Sep 2005
Posts: 8

PostPosted: Sun Oct 02, 2005 11:40 am    Post subject: Reply with quote

works a treat thankyou
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    egghelp.org community Forum Index -> Archive 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