# config file for Chrisbot # # Copyright (c) 2002-2004 Chris Angell (chris@chrisangell.com). All rights reserved. # This program is free software; you can redistribute it and/or # modify it under the same terms as Perl itself. #################################### # The below settings are mandatory # #################################### # Nickname bot will use on the irc network NICK = perlbot # Irc server the bot connects to SERVER_ADDRESS = irc.chrisangell.com # Location of the fact database file FACTS_DB = /home/chrisangell/etc/chrisbot/v3/data/facts.db ################################################################ # all other settings are optional, though some are recommended # ################################################################ # Channels the bot joins on startup. If CHANNELS contains nothing, the bot will not # join channels after connecting to irc network # Usual syntax: # CHANNELS = #perl #foo #bar # Syntax for networks that let users join many channels at once, ala "/join #chan1,#chan2,#chan3": # CHANNELS = #perl,#foo,#bar # Using the second method, make sure there are NO spaces in the string # Otherwise the bot will join "#perl," and then "#foo," and then #bar, which # probably isn't what's wanted CHANNELS = #citadel,#modperl,#perl,#ipv6,#perlbot,#mrtg,#ipv6-fr,#freebsd-fr,#botpark,#css,#modus # The user the bot is run as. Pointless on most irc networks USER = perlbot # What SERVER_ADDRESS port the bot connects to. Defaults to 6667 SERVER_PORT = 6667 # Local address the bot binds to. Handy for hostname resolution/hostmasks LOCAL_ADDRESS = 64.62.252.78 # Local port the bot uses. Handy if machine is firewalled # LOCAL_PORT = 38495 # The userland user the bot is run as. The bot most be started as a superuser in order for # the bot to be run as a user other than the user that starts the bot. # Example: RUNAS_LOCAL_USER is "chris". Userland user "chris" can start the bot without being # a superuser. # Example: RUNAS_LOCAL_USER is set to "chrisbot". Userland user "chris" can't start the bot unless he uses # sudo, a setuid script, etc. # A superuser such as "root" can always start the bot, though running a bot as a superuser isn't advised RUNAS_LOCAL_USER = perlbot # Bot redirects stdout/stderr/stdin to the file defined in LOGFILE, or # to /dev/null if LOGFILE isn't defined LOGFILE = /home/chrisangell/etc/chrisbot/v3/data/logs/freenode-perlbot.log # File that the bot will store its PID in (perl's $$ variable) # This makes it easy to write small scripts for killing/restarting the bot PIDFILE = /home/chrisangell/etc/chrisbot/v3/data/logs/freenode-perlbot.pid # File where raw irc data is dumped RAW_LOG = /home/chrisangell/etc/chrisbot/v3/data/logs/freenode-perlbot.raw_irc_log # An irc nick usually. can be anything OWNER = Chris62vw # Usually the bot's name needs to preface a command for the bot to "listen" to users. # This option tells the bot to listen to everything said on channels listed, whether the bot # was "spoken to" directly or indirectly # Directly: Chrisbot, hi! # Indirectly: math 1 + 2 - 3 # LISTEN_ON = #perlbot #mrtg # location of FORTUNE(1), if applicable, plus flags # example flags: # -s makes fortune return short fortunes # -o returns offensive fortunes (which are hardly offensive anyway) # You probably want to use the -s option FORTUNE_PROG = /usr/games/fortune -os # Location of the karma database file - dont't set if you don't want karma enabled KARMA_DB = /home/chrisangell/etc/chrisbot/v3/data/karma.db # Set to "yes" to have the bot automatically rejoin channels when kicked AUTO_REJOIN = yes # Ignore certain users that are bots (infinite loops between bots are bad!), that abuse # the bot, etc. IGNORED_USERS = oblio # What shows when the bot receives a CTCP VERSION. Deaults to something if not defined VERSION = Chrisbot version 3 by Chris Angell (chris@chrisangell.com) # Password the bot sends to IDENTIFY_TO_WHO (defaults to nickserv) IDENTIFY_PASS = passwordgoeshere # IDENTIFY_TO_WHO defaults to "nickserv". This setting tells the bot who to identify to # IDENTIFY_TO_WHO = nickserv # Wome irc networks let users identify as other users # specify as needed # IDENTIFY_AS_WHO = perlbot # Is another word used instead of "identify" when sending IDENTIFY_PASS to IDENTIFY_TO_WHO? # If so, specify below. The word "identify" is default # IDENTIFY_COMMAND_WORD = identify # The value for PROGRAM_NAME will be set in $0 # $0 Contains the name of the program being executed # The program name is what you see when you run TOP(1), for example, or # what is seen when you look at the processes owned by the user who the bot # is running as # Doesn't work on all systems, and works differently from system to system PROGRAM_NAME = freenode-perlbot # URL of cpan search engine - the search string is appended to the end of the below URL CPAN_SEARCH_URL = http://search.cpan.org/search?mode=all&query= # default nameserver for the host functionality DEFAULT_NS = 127.0.0.1 __END__ Notes can be kept here. Anything past __END__ is ignored and not parsed