Mercurial > hg > egg-tcls
diff feeds.tcl @ 265:908edc54005a
feeds: Move configuration to separate file.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 23 Jan 2015 10:15:38 +0200 |
parents | 0ff78e418e77 |
children | 9380535b8f12 |
line wrap: on
line diff
--- a/feeds.tcl Fri Jan 23 10:07:15 2015 +0200 +++ b/feeds.tcl Fri Jan 23 10:15:38 2015 +0200 @@ -1,10 +1,10 @@ ########################################################################## # -# FeedCheck v0.8 by Matti 'ccr' Hamalainen <ccr@tnsp.org> -# (C) Copyright 2008-2013 Tecnic Software productions (TNSP) +# FeedCheck v0.9 by Matti 'ccr' Hamalainen <ccr@tnsp.org> +# (C) Copyright 2008-2015 Tecnic Software productions (TNSP) # -# Requires get_feeds.tcl to be run as a cronjob, for example -# 15 * * * * /absolute/path/to/get_feeds.tcl +# Requires fetch_feeds.tcl to be run as a cronjob, for example +# 15 * * * * /absolute/path/to/fetch_feeds.tcl # # See also create_feeds_db.tcl OR convert_feeds_db.tcl, as you will # need to either create a SQLite3 database or convert old text flat @@ -14,33 +14,17 @@ # ########################################################################## -# SQLite3 database, MUST be set to same as in feeds.tcl -set feeds_dbfile "/home/niinuska/bot/feeds.sqlite" - -# How often to check for newly added feed items from the database? -# (in minutes) This has nothing to do how often the backend script -# is run and actually scans / pulls the feeds, that is done in CRON. -# See get_feeds.tcl for more information. -set feeds_check_period 5 - -# Set channels and feed filters here: -# "#channel" "feedname|feedname2" -# feednames can use matching, e.g. "mtv3*" would match all beginning with "mtv3" -array set feeds_channels { - "#mazmlame" "the adventurers|oots|mestari|blastwave" - "#fireball" "mestari" - "#tnsp" "the adventurers|oots|mestari" -} - - -set feeds_preferredmsg "PRIVMSG" +### The configuration should be in config.feeds in same directory +### as this script. Or change the line below to point where ever +### you wish. See "config.feeds.example" for an example config file. +source [file dirname [info script]]/config.feeds ########################################################################## # No need to look below this line ########################################################################## set feeds_name "FeedCheck" -set feeds_message "$feeds_name v0.8 by ccr/TNSP" +set feeds_message "$feeds_name v0.9 by ccr/TNSP" putlog "$feeds_message" bind pub - !feeds feeds_pubfetch