forked from Bytespeicher/Bytebot
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbytebot_config.py.example
More file actions
121 lines (113 loc) · 3.27 KB
/
bytebot_config.py.example
File metadata and controls
121 lines (113 loc) · 3.27 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
import bytebot_log
import os
BYTEBOT_LOGLEVEL = bytebot_log.LOG_ERROR | bytebot_log.LOG_WARN
BYTEBOT_LOGPATH = '/var/log/bytebot/'
BYTEBOT_SERVER = ""
BYTEBOT_PORT = 6667
BYTEBOT_SSL = True
BYTEBOT_NICK = ""
BYTEBOT_PASSWORD = ""
BYTEBOT_CHANNEL = ""
BYTEBOT_DESCRIPTION = ""
BYTEBOT_TOPIC = u''
BYTEBOT_STATUS_URL = 'http://status.bytespeicher.org/status.json'
BYTEBOT_HTTP_TIMEOUT = 3
BYTEBOT_HTTP_MAXSIZE = 1024 * 1024 * 10
"""
Enable plugins by writing their lowercase name here
"""
BYTEBOT_PLUGINS= [
'usercount',
'messagelogger',
'autoop',
'spacestatus',
'ircquestions',
'shorturl',
'dates',
'rss',
'parking',
'ccc32c3'
]
BYTEBOT_PLUGIN_CONFIG = {
'rss': [
{ 'name': 'Wiki',
'url': 'http://www.technikkultur-erfurt.de/feed.php',
'cache':'/tmp/feed_wiki.cache',
'type': 'dokuwiki',
},
{ 'name': 'Website',
'url': 'https://bytespeicher.org/feed/',
'cache':'/tmp/feed_website.cache',
'type': 'wordpress',
},
{ 'name': 'BytebotCommits',
'url': 'https://github.com/Bytespeicher/Bytebot/commits/master.atom',
'cache':'/tmp/feed_bytebot.cache',
'type': 'github',
},
{ 'name': 'Redmine',
'url': 'http://redmine.bytespeicher.org/issues.atom',
'cache':'/tmp/feed_rm_bytespeicher.cache',
'type': 'redmine',
},
],
'dates': {
'url': 'http://www.google.com/calendar/ical/2eskb61g20prl65k2qd01uktis%40group.calendar.google.com/public/basic.ics',
'timedelta': 21
},
'messagelogger': {
'file': '/tmp/irc.log'
},
'usercount': {
'file': '/tmp/irc_user.log'
},
'autoop': {
'name': {
'#channelname': [
'username',
],
},
'hostmask': {
'#channelname': [
'username!~user@example.com'
],
}
},
'spacestatus': {
'url': 'http://status.bytespeicher.org/status.json'
},
'ircquestions': {
'location': 'http://technikkultur-erfurt.de/bytespeicher:anfahrt',
'dates': 'http://technikkultur-erfurt.de/bytespeicher:veranstaltungen',
'versorgung': 'http://technikkultur-erfurt.de/bytespeicher:versorgung',
},
'shorturl': {
'shortener': 'krzus',
'api_key': 'thiswoudbeyourapikey',
'clarifai_app_id' : 'yourappid',
'clarifai_app_secret': 'yourappsecret',
},
'parking': {
'url': 'http://parken.cjcj.de/erfurt/',
},
'mensa': {
'canteen': 148,
},
'fuel': {
'apikey': 'thiswoudbeyourapikey',
},
'ccc32c3': {
'events_json_path': os.path.dirname(os.path.abspath(__file__)
) + "/data/events_32c3.json",
},
'weather': {
'api_key': 'your_apikey',
'url': 'http://api.openweathermap.org/data/2.5/weather?units=metric&q=',
'location': 'city,countrycode'
},
'wikipedia': {
'url': 'https://de.wikipedia.org/w/api.php?&action=query&format=json&prop=extracts&exintro=&explaintext=&titles='
},
}