annotate jabberbot/config.py @ 3762:95266d0c8a6f

fix logo string
author Johannes Berg <johannes AT sipsolutions DOT net>
date Sun, 22 Jun 2008 02:51:15 +0200
parents d860ab45d438
children e5a9570d3001
rev   line source
2149
7def1e49e757 Add a sample config for the notification bot.
Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl>
parents:
diff changeset
1 # -*- coding: iso-8859-1 -*-
7def1e49e757 Add a sample config for the notification bot.
Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl>
parents:
diff changeset
2 """
7def1e49e757 Add a sample config for the notification bot.
Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl>
parents:
diff changeset
3 MoinMoin - jabber bot configuration file
7def1e49e757 Add a sample config for the notification bot.
Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl>
parents:
diff changeset
4
7def1e49e757 Add a sample config for the notification bot.
Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl>
parents:
diff changeset
5 @copyright: 2007 by Karol Nowak <grywacz@gmail.com>
7def1e49e757 Add a sample config for the notification bot.
Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl>
parents:
diff changeset
6 @license: GNU GPL, see COPYING for details.
7def1e49e757 Add a sample config for the notification bot.
Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl>
parents:
diff changeset
7 """
7def1e49e757 Add a sample config for the notification bot.
Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl>
parents:
diff changeset
8
2286
01f05e74aa9c Big PEP8 and whitespace cleanup
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 2149
diff changeset
9
2149
7def1e49e757 Add a sample config for the notification bot.
Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl>
parents:
diff changeset
10 class BotConfig:
7def1e49e757 Add a sample config for the notification bot.
Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl>
parents:
diff changeset
11 # Node name (username on the jabber server) to be used
7def1e49e757 Add a sample config for the notification bot.
Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl>
parents:
diff changeset
12 xmpp_node = u"moinbot"
7def1e49e757 Add a sample config for the notification bot.
Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl>
parents:
diff changeset
13
7def1e49e757 Add a sample config for the notification bot.
Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl>
parents:
diff changeset
14 # Server to be used
7def1e49e757 Add a sample config for the notification bot.
Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl>
parents:
diff changeset
15 xmpp_server = u"jabber.example.com"
2286
01f05e74aa9c Big PEP8 and whitespace cleanup
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 2149
diff changeset
16
2149
7def1e49e757 Add a sample config for the notification bot.
Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl>
parents:
diff changeset
17 # Port to connect to or None, if default
7def1e49e757 Add a sample config for the notification bot.
Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl>
parents:
diff changeset
18 xmpp_port = None
7def1e49e757 Add a sample config for the notification bot.
Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl>
parents:
diff changeset
19
7def1e49e757 Add a sample config for the notification bot.
Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl>
parents:
diff changeset
20 # Resource name (entity@server/resource) to be used
7def1e49e757 Add a sample config for the notification bot.
Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl>
parents:
diff changeset
21 xmpp_resource = u"wiki"
7def1e49e757 Add a sample config for the notification bot.
Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl>
parents:
diff changeset
22
7def1e49e757 Add a sample config for the notification bot.
Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl>
parents:
diff changeset
23 # Password used to connect to the xmpp server
7def1e49e757 Add a sample config for the notification bot.
Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl>
parents:
diff changeset
24 xmpp_password = u""
2286
01f05e74aa9c Big PEP8 and whitespace cleanup
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 2149
diff changeset
25
2149
7def1e49e757 Add a sample config for the notification bot.
Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl>
parents:
diff changeset
26 # Status message that the bot should set
7def1e49e757 Add a sample config for the notification bot.
Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl>
parents:
diff changeset
27 xmpp_status = u"Ready to serve!"
2286
01f05e74aa9c Big PEP8 and whitespace cleanup
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 2149
diff changeset
28
01f05e74aa9c Big PEP8 and whitespace cleanup
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 2149
diff changeset
29 # Set to True if bot should be verbose about actions it
2149
7def1e49e757 Add a sample config for the notification bot.
Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl>
parents:
diff changeset
30 # is performing. Useful for debuging.
7def1e49e757 Add a sample config for the notification bot.
Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl>
parents:
diff changeset
31 verbose = True
7def1e49e757 Add a sample config for the notification bot.
Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl>
parents:
diff changeset
32
7def1e49e757 Add a sample config for the notification bot.
Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl>
parents:
diff changeset
33 # Interface to listen on for XML RPC traffic
7def1e49e757 Add a sample config for the notification bot.
Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl>
parents:
diff changeset
34 xmlrpc_host = u"localhost"
2286
01f05e74aa9c Big PEP8 and whitespace cleanup
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 2149
diff changeset
35
2149
7def1e49e757 Add a sample config for the notification bot.
Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl>
parents:
diff changeset
36 # Port to listen on for XML RPC traffic
7def1e49e757 Add a sample config for the notification bot.
Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl>
parents:
diff changeset
37 xmlrpc_port = 8000
2286
01f05e74aa9c Big PEP8 and whitespace cleanup
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 2149
diff changeset
38
2149
7def1e49e757 Add a sample config for the notification bot.
Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl>
parents:
diff changeset
39 # Url where wiki is located (for reverse XML RPC traffic)
7def1e49e757 Add a sample config for the notification bot.
Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl>
parents:
diff changeset
40 wiki_url = u"http://localhost:8080/"
2286
01f05e74aa9c Big PEP8 and whitespace cleanup
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 2149
diff changeset
41
2149
7def1e49e757 Add a sample config for the notification bot.
Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl>
parents:
diff changeset
42 # A secret shared with Wiki , must be the same in both
7def1e49e757 Add a sample config for the notification bot.
Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl>
parents:
diff changeset
43 # configs for communication to work.
7def1e49e757 Add a sample config for the notification bot.
Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl>
parents:
diff changeset
44 #
7def1e49e757 Add a sample config for the notification bot.
Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl>
parents:
diff changeset
45 # CHANGE IT TO A LONG RANDOM STRING, OR YOU WILL HAVE A SECURITY ISSUE!
2310
1369b1f31497 Remove default secrets from bot and sample wiki configs.
Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl>
parents: 2149
diff changeset
46 secret = u""
3019
d860ab45d438 GHOP: part 3/3 of XEP-115 implementation by bolekk.
Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl>
parents: 2336
diff changeset
47
d860ab45d438 GHOP: part 3/3 of XEP-115 implementation by bolekk.
Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl>
parents: 2336
diff changeset
48 # Maximum number of items in service discovery cache (XEP-0115)
d860ab45d438 GHOP: part 3/3 of XEP-115 implementation by bolekk.
Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl>
parents: 2336
diff changeset
49 disco_cache_size = 100
d860ab45d438 GHOP: part 3/3 of XEP-115 implementation by bolekk.
Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl>
parents: 2336
diff changeset
50
d860ab45d438 GHOP: part 3/3 of XEP-115 implementation by bolekk.
Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl>
parents: 2336
diff changeset
51 # Time allowed for a response for disco#info query (in seconds)
d860ab45d438 GHOP: part 3/3 of XEP-115 implementation by bolekk.
Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl>
parents: 2336
diff changeset
52 disco_answering_timeout = 60