Mercurial > hg > egg-tcls
view config.urllog.example @ 647:98e2254056b2
tj: Adjust few comments.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 17 Feb 2021 10:21:23 +0200 |
parents | 577763cb8864 |
children | aa317575410d |
line wrap: on
line source
########################################################################## # # URLLog script configuration # ########################################################################## ### ### Bind commands ### bind pub - !urlfind urllog_cmd_pub_search bind msg - !urlfind urllog_cmd_msg_search bind pubm - *.* urllog_check_line bind topc - *.* urllog_check_line # Name of the command used for help texts set urllog_cmd_name "!urlfind" ### ### 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 "*" # Channels where URLLog announces URL titles and so on # By default we set this to same as urllog_log_channels set urllog_pub_channels $urllog_log_channels # 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 # 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 ### Various additional checks for URL validity: (1 = enabled, 0 = disabled) ### This is REQUIRED for document title fetching/storage set urllog_extra_checks 1 ### Set to 1 if you want "strict" extra checking. This will cause ### ftp URLs not being added, and if TLS support is disabled, https URLs ### will not be added either. You probably don't want this set. set urllog_extra_strict 0 ### What IRC "command" should we use to send messages: # (Valid alternatives are "PRIVMSG" and "NOTICE") set urllog_preferredmsg "PRIVMSG" ### ### Search related settings ### # 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 DBO support for PHP and access to # change .htaccess file(s) on your web server. The PHP # script will also need access to the database this # script uses. # # 1 = Enable showing of ShortURLs # 0 = ShortURLs not shown in any bot actions set urllog_shorturl_enable 1 # Web server URL that handles redirects of ShortURLs set urllog_shorturl_prefix "https://tnsp.org/u/" ### ### 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 TLS/SSL support. If disabled, https URLs won't be added at all. # If you enable this setting, you need to set http_tls_cadir to point to # correct location as well! set http_tls_support 1 set http_tls_cadir "/usr/share/ca-certificates/mozilla" ### ### Message related settings ### # Max length of original URL to be shown when adding set urllog_add_url_max 100 # Max length of title to be shown when adding set urllog_add_title_max 100 # Max length of original URL to be shown on search # results IF ShortURLs are enabled and is available. # If ShortURLs are NOT enabled, full URL is used! set urllog_search_url_max 50 # Max length of title to be shown on search results set urllog_search_title_max 50 # Message texts (informal, errors, etc.) array set urllog_messages { "err_http_fail" "nyt meni vituix: @3@" "err_http_get" "kraak, virhe yhdynnässä: @2@" "err_http_status" "voi perse: @2@, @3@" "err_url_local_net" "en tykkää #1." "err_url_invalid_net" "en tykkää #2." "err_url_proto_class" "en tykkää #3." "err_url_proto_no_class" "en tykkää #4." "err_url_invalid_port" "en tykkää #5." "err_redirect_invalid" "paska redirecti @5@" "err_redirect_fail" "redirekti @5@ feilasi: @1@ / @3@" "err_charset" "yhyy, merkistö paske! @3@" "url_added_short_has_title" "'@1@' (@4@) @5@" "url_added_short_no_title" "@4@ @5@" "url_added_long_has_title" "'@1@' (@4@)" "url_added_long_no_title" "@3@" "url_known_has_title" "'@2@' " "url_known_no_title" "" "url_known_short" "wanha! @5@@7@ (@1@@@4@)" "url_known_long" "wanha! @5@@6@ (@1@@@4@)" "search_result_has_title" "'@2@' " "search_result_no_title" "" "search_result_short" "#@1@: @4@@5@ @6@ (@2@ @ @3@)" "search_result_long" "#@1@: @4@@5@ (@2@ @ @3@)" "search_no_match" "ei osumia." }