view config.urllog.example @ 280:3893192d7aff rel-0_1_0

weather: Fix a WTF.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 23 Jan 2015 12:32:06 +0200
parents 64fe89074450
children 1ff281e821a3
line wrap: on
line source

##########################################################################
#
# URLLog script configuration
#
##########################################################################

###
### HTTP options
###
# Set to 1 if you want to enable use of HTTP proxy.
# If you do, you MUST set the proxy settings below too.
set http_use_proxy 0

# Proxy host and port number (only used if enabled above)
set http_proxy_host ""
set http_proxy_port 8080

# Enable _experimental_ TLS/SSL support. This may not work at all.
# If unsure, leave this option disabled (0).
set http_tls_support 1

set http_tls_cadir "/usr/share/ca-certificates/mozilla"

# Set 'user agent' string for HTTP. If empty or not set, default will be used.
set http_user_agent ""



###
### General options
###

# Channels where URLLog records links/URLs
# set urllog_log_channels "#foobar;#baz"
# You can use * to match substrings or everything
set urllog_log_channels "#tnsp;#fireball;#mazmlame"


# Filename of the SQLite URL database file
set urllog_db_file "urllog.sqlite"


# 1 = Verbose: Say messages when URL is OK, bad, etc.
# 0 = Quiet  : Be quiet (only speak if asked with !urlfind, etc)
set urllog_verbose 1


# 1 = Enable logging of various script actions into bot's log
# 0 = Don't.
set urllog_log_enable 1


# 1 = Check URLs for validity and existence before adding.
# 0 = No checks. Add almost _anything_ that looks like an URL to the database.
# (You probably want this enabled.)
set urllog_extra_checks 1


###
### Search related settings
###

# Channels where !urlfind and other commands can be used.
# By default this is set to be the same as urllog_log_channels
set urllog_search_channels $urllog_log_channels

# Limit how many URLs should the "!urlfind" command show at most.
set urllog_showmax_pub 3

# Same as above, but for private message search.
set urllog_showmax_priv 6


###
### ShortURL-settings
###
# To enable ShortURL functionality, you need to set up the
# URL redirector PHP script (urlredirect.php) correctly, and
# enable change the settings in it and below appropriately.
# See urlredirect.php.txt for more information.
#
# You will also need SQLite3 support for PHP and access to
# change .htaccess file(s) on your web server. The PHP
# script will also need access to the SQLite3 database this
# script uses.
#

# 1 = Enable showing of ShortURLs
# 0 = ShortURLs not shown in any bot actions
set urllog_shorturl 1

# Max length of original URL to be shown, rest is chopped
# off if the URL is longer than the specified amount.
set urllog_shorturl_orig 30

# Web server URL that handles redirects of ShortURLs
set urllog_shorturl_prefix "http://tnsp.org/u/"


###
### Message texts (informal, errors, etc.)
###

# No such host was found
set urlmsg_nosuchhost "ei tommosta oo!"

# Could not connect host (I/O errors etc)
set urlmsg_ioerror "kraak, virhe yhdynnässä."

# HTTP timeout
set urlmsg_timeout "ei jaksa ootella"

# No such document was found
set urlmsg_errorgettingdoc "siitosvirhe"

# URL was already known (was in database)
set urlmsg_alreadyknown "wanha!"
#set urlmsg_alreadyknown "Empiiristen havaintojen perusteella ja tällä sovellutusalueella esiintyneisiin aikaisempiin kontekstuaalisiin ilmaisuihin viitaten uskallan todeta, että sovellukseen ilmoittamasi tietoverkko-osoite oli kronologisti ajatellen varsin postpresentuaalisesti sopimaton ja ennestään hyvin tunnettu."

# No match was found when searched with !urlfind or other command
set urlmsg_nomatch "Ei osumia."


###
### Things that you usually don't need to touch ...
###

# What IRC "command" should we use to send messages:
# (Valid alternatives are "PRIVMSG" and "NOTICE")
set urllog_preferredmsg "PRIVMSG"

# The valid known Top Level Domains (TLDs), but not the country code TLDs
# (Now includes the new IANA published TLDs)
set urllog_tlds "org,com,net,mil,gov,biz,edu,coop,aero,info,museum,name,pro,int,xxx"