# news4.tcl configuration file - must be changed to add news to your channels # =========================================================================== # If news_ignore_strangers is set to 1, no error messages are send to users # that are not known to the bot. Of course they may read news in channels # with "openread" defined. set news_ignore_strangers 1 # =========================================================================== # News channels configuration. # Add one channel entry for each channel your bot is on and for which you # want to add news. Change the configuration inside the { } as you like. See # below for information about each configuration item. The default values # will make the news system to behave somehow like the old news2.tcl. # Here an example which changes all default values: news &general { newsfile news.general openread 0 noticeonjoin 0 allowwrite flag m expiredays 30 maxnews 100 } news #concil { newsfile news.concil openread 0 noticeonjoin 0 allowwrite flag m expiredays 30 maxnews 15 } news #aide { newsfile news.aide openread 0 noticeonjoin 0 allowwrite flag o expiredays 15 maxnews 50 } news #cours { newsfile news.cours openread 0 noticeonjoin 0 allowwrite flag o expiredays 15 maxnews 30 } news #aidebot { newsfile news.aidebot openread 0 noticeonjoin 0 allowwrite flag m expiredays 15 maxnews 50 } news &projets { newsfile news.projets openread 0 noticeonjoin 0 allowwrite flag o expiredays 30 maxnews 75 } # Here an shorter example, which uses all the default values: # news #brasil # =========================================================================== # News configuration options explained: # newsfile # The file that will hold the actual news entries for this channel # Default: channelname.news # openread # Allows anyone (even not registered users) to read the news stored in # the newsfile of a channel. # 0 = only registered users may read the news # 1 = everyone can read the news in this channel (default) # noticeonjoin # Whether to send a notice to each user when they join (channel or # partyline), if there are unread news. Notice is send only to users # allowed to read the news by the 'openread' setting. # 0 = never (default) # 1 = always # allowwrite # Who is allowed to add a news to the channel news # all = everyone, even not registered users on the bot # users = any user registered in the bot can add a news (default) # flag = only users with flag can add a news to the news # file (global and channel flags are checked) # expiredays # How many days to keep a news stored in the news file. Expiration # checking takes place whenever an user adds or deletes news from the # news file. # 0 = never expire (default) # X (any positive value) = expire after X days # maxnews # How many news are allowed in the news file? This expires old news in a # similar way expiredays does. Both settings can be used together, what # then happens first (too many news or news too old) will expire a msg. # 0 = never expire (default) # X (any positive value) = expire old news if there are more than X news