Skip to content
This repository has been archived by the owner on Jul 30, 2024. It is now read-only.

Configuration options

Kimmo Huoman edited this page Mar 7, 2014 · 3 revisions
nick
Sets nickname for bot.

networks

Dictionary of networks, key is network alias.

server
Hostname / IP-address of to connect to.
channels
List of channels to join on the network.
port
Port to connect to. Default: 6667
nick
Nickname for this server, overrides global nick. Default: Global nick
password
Server password. Default: None
is_ssl
Use SSL for encryption. Default: False
linerate
Sets linerate for bot, determines how many lines per second the bot can output. Default: 1
force_ipv6
Forces IPv6 to be used. If IPv6 address isn't found, connection will fail. Default: False
authname
Name used in authentication. Default: None
authpass
Password/key used for authentication. Default: None
authservice
Authentication service to use. Must be set, otherwise authentication will be passed. Default: None
authcommand
Command string to send to the authentication service. Default: "IDENTIFY %(authname)s %(authpass)s
authdelay
Time to wait before joining the channels after authentication (in seconds). Default: None

logging

debug
Use debug-output. Default: False

module_urltitle

check_redundant
Uses Levenshtein distance to calculate if title is already in url. If it is, disables output. Default: True
disable
List of channels, where module_urltitle is disabled. Default: None
ignore_urls
List of ignored urls. Default: None
ignore_users
List of users who's links are ignored. Default: None
ebay_appid
Application ID for eBay-handler. Default: Bot's appid
ebay_siteid
Site id for eBay-handler (see link). Default: 77 (Germany, for euros)
ebay_currency
eBay handlers output currency marker. Default: 'e'

module_openweather

default_location
Default location for weather fetching without arguments. Default: Helsinki
threshold
Threshold for "old data" in minutes, shows measurement time, if older than this. Default: 120

module_fmi

api_key
API key to FMI. Default: Bot's API key
default_place
Default location for weather fetching without arguments. Default: Helsinki

module_wolfram_alpha

appid
Application ID for Wolfram Alpha (see link). Default: None

Example configuration

nick: pyfibot_test

admins:
  - 'kipe@localhost'

networks:
  ircnet:
    server: localhost
    channels:
      - pyfibot
      - kipen_testi
    linerate: 3
    password: letmein
  nerv:
    server: irc.nerv.fi
    is_ssl: true
    force_ipv6: true
    channels:
      - pyfibot
    authdelay: 0
    authservice: Kipe_
    authname: testi
    authpass: testi2
    authcommand: 'WIHII %(authname)s %(authpass)s'

logging:
  debug: true

module_urltitle:
  check_redundant: false
  twitter_bearer: akljsdkljasndkjansf

module_wolfram_alpha:
  appid: asdasdasdasdasd

module_openweather:
  default_location: Lappeenranta

module_fmi:
  default_place: Lappeenranta
Clone this wiki locally