forked from cfr34k/yacybot
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.py
46 lines (37 loc) · 1.6 KB
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# --- Configuration for YaCyBot ---
# vim: ts=2 sw=2 expandtab
# ----------------------------------------------------------------------------
# "THE PIZZA-WARE LICENSE" (derived from "THE BEER-WARE LICENCE"):
# <[email protected]> wrote this file. As long as you retain this notice you
# can do whatever you want with this stuff. If we meet some day, and you think
# this stuff is worth it, you can buy me a pizza in return. - Thomas Kolb
# ----------------------------------------------------------------------------
IRC_SERVER = "localhost" # Hostname / IP of the IRC server
IRC_PORT = 61234 # Port of the IRC server
IRC_NICK = "YaCyBot" # Nick of the bot
# A list of channels that should be joined. The bot will be available in all
# channels simultaneously.
IRC_CHANNELS = [
"#yacytest"
]
# Increase this if the server drops messages because of flood protection
IRC_MIN_DELAY = 0.8
# If this is not zero, a /ping command is sent to the server every
# IRC_PING_INTERVAL seconds
IRC_PING_INTERVAL = 300
YACY_ADDRESS = "localhost" # Hostname / IP of the YaCy-Peer
YACY_PORT = 8080 # Port of the YaCy-Peer
# Default parameters for the request URL
YACY_DEFAULT_PARAMS = {
'startRecord': "0",
'verify': "true",
'resource': "global",
'maximumRecords': "5",
'nav': "none"
}
# How often statistics are actually reloaded from the peer (in seconds)
YACY_STATS_UPDATE_INTERVAL = 60
# The timeout passed to urllib2.urlopen.
# Decrease this value if the Bot is frequently disconnected by the IRC Server
# when the YaCy peer is hanging
URLLIB_TIMEOUT = 60