config.py.sample 1012 Bytes
Newer Older
1 2 3 4 5
#encoding: utf-8
"""
Configuration for IRC bot Wantzel.
"""

6
# IRC access
7
server      = 'irc.freenode.net'
Mindiell's avatar
Mindiell committed
8
port        = 6697
9 10 11 12 13
nickname    = 'testBot'
password    = '',
channels    = [
    '#testchannel'
]
14 15

# External drupal db, MySQL
Mindiell's avatar
Mindiell committed
16 17 18 19
dbuser      = "root"
dbpassword  = ""
dbserver    = "localhost"
dbname      = "db"
20

21 22 23 24
# External API for rp
api = "The URL API"
token = "Token get_a_token"

25 26 27 28 29 30 31 32 33 34 35 36
# Internal db, sqlite is sufficient
sqlite_db   = "db.sqlite3"

# Timer for chrono-methods, in seconds (float)
timer = 180

# Twitter account
TOKEN = ""
TOKENSEC = ""
CONSKEY = ""
CONSSEC = ""

37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
# Logfile
LOG_FILE = "wantzel.log"
DEBUG = 3
WARNING = 2
INFO = 1
ERROR = 0
LOG_LEVEL = DEBUG

# Press Review
MASTER_SCORE = 5
MASTER_CLEANING = 7  # in days
RP_CHANNEL = "#choose_a_channel"
# Feeds channels for tweeting
feeds = (
    "feed_1",
    "feed_2",
)

# Monitoring
MONITOR_CHANNEL = "#choose_a_channel"
monitors = [
    {
        "name": "A fantastic name",
        "type": "a type",
        "url" : "an URL",
    },
]