TCLDROP
Would you like to react to this message? Create an account in a few clicks or log in to continue.
TCLDROP

Eggdrop And TCL Help, Support And Chat
 
HomeHome  PublicationsPublications  FAQFAQ  SearchSearch  MemberlistMemberlist  Latest imagesLatest images  UsergroupsUsergroups  RegisterRegister  Log in  CalendarCalendar  WebsiteWebsite  ChatRoomChatRoom  

 

 Sticky Topic

Go down 
2 posters
AuthorMessage
EggMan
Voice
Voice



Posts : 6
Points : 10
Reputation : 0
Join date : 2020-06-30

Sticky Topic  Empty
PostSubject: Sticky Topic    Sticky Topic  Empty30/6/2020, 14:52

Hiya

Im new to using eggdrop.

is there a way to keep the topic in my channel, even when the bot goes down and restarts?
Back to top Go down
BdS
Moderator
Moderator
BdS


Posts : 33
Points : 33
Reputation : 0
Join date : 2020-05-08
Location : France

Sticky Topic  Empty
PostSubject: Re: Sticky Topic    Sticky Topic  Empty30/6/2020, 18:04

You want he keep a default topic that he always puts back. Or you want re-run the actual topic ?
Back to top Go down
EggMan
Voice
Voice



Posts : 6
Points : 10
Reputation : 0
Join date : 2020-06-30

Sticky Topic  Empty
PostSubject: Re: Sticky Topic    Sticky Topic  Empty30/6/2020, 22:01

To make a set topic on the script to be sticky Wink
Back to top Go down
BdS
Moderator
Moderator
BdS


Posts : 33
Points : 33
Reputation : 0
Join date : 2020-05-08
Location : France

Sticky Topic  Empty
PostSubject: Re: Sticky Topic    Sticky Topic  Empty1/7/2020, 10:46

Can you explain what you're really looking for, in detail ?
Back to top Go down
EggMan
Voice
Voice



Posts : 6
Points : 10
Reputation : 0
Join date : 2020-06-30

Sticky Topic  Empty
PostSubject: Re: Sticky Topic    Sticky Topic  Empty2/7/2020, 19:03

So for example

i set topic to blah blah blah

Nick1 changes topic to blah2

bot changes topic back to blah blah blah
Back to top Go down
BdS
Moderator
Moderator
BdS


Posts : 33
Points : 33
Reputation : 0
Join date : 2020-05-08
Location : France

Sticky Topic  Empty
PostSubject: Re: Sticky Topic    Sticky Topic  Empty2/7/2020, 19:39

Now I understand your request. I'll look into it tomorrow.

On the other hand nothing prevents you from proposing a beginning of code or trying to do it Wink
Back to top Go down
BdS
Moderator
Moderator
BdS


Posts : 33
Points : 33
Reputation : 0
Join date : 2020-05-08
Location : France

Sticky Topic  Empty
PostSubject: Re: Sticky Topic    Sticky Topic  Empty2/7/2020, 19:54

Who can change the topic? The operators on the egg or just the admins?
Back to top Go down
BdS
Moderator
Moderator
BdS


Posts : 33
Points : 33
Reputation : 0
Join date : 2020-05-08
Location : France

Sticky Topic  Empty
PostSubject: Re: Sticky Topic    Sticky Topic  Empty6/7/2020, 10:06

Code:

set deftopic "Your default topic"
set flagtopc "n|n"

bind topc - * do_topic
proc do_topic {nick uhost hand chan text } {
   if {[matchattr [nick2hand $nick] $::flagtopc] || [isbotnick $nick]} {
      return 0
   } else {
      puthelp "topic $chan :$::deftopic"
   }
}

Only the admin (with "n" flag) can change the topic
Back to top Go down
Sponsored content





Sticky Topic  Empty
PostSubject: Re: Sticky Topic    Sticky Topic  Empty

Back to top Go down
 
Sticky Topic
Back to top 
Page 1 of 1
 Similar topics
-
» Simple Timer Topic Txt file script

Permissions in this forum:You cannot reply to topics in this forum
TCLDROP :: TCL :: Script Requests-
Jump to: