changeset 2149:7def1e49e757

Add a sample config for the notification bot.
author Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl>
date Sun, 17 Jun 2007 16:56:43 +0200
parents 8181ec5cd86c
children 3417a1d559d0
files jabberbot/config.py
diffstat 1 files changed, 45 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/jabberbot/config.py	Sun Jun 17 16:56:43 2007 +0200
@@ -0,0 +1,45 @@
+# -*- coding: iso-8859-1 -*-
+"""
+    MoinMoin - jabber bot configuration file
+
+    @copyright: 2007 by Karol Nowak <grywacz@gmail.com>
+    @license: GNU GPL, see COPYING for details.
+"""
+
+class BotConfig:
+    # Node name (username on the jabber server) to be used
+    xmpp_node = u"moinbot"
+
+    # Server to be used
+    xmpp_server = u"jabber.example.com"
+    
+    # Port to connect to or None, if default
+    xmpp_port = None
+
+    # Resource name (entity@server/resource) to be used
+    xmpp_resource = u"wiki"
+
+    # Password used to connect to the xmpp server
+    xmpp_password = u""
+    
+    # Status message that the bot should set
+    xmpp_status = u"Ready to serve!"
+        
+    # Set to True if bot should be verbose about actions it 
+    # is performing. Useful for debuging.
+    verbose = True
+
+    # Interface to listen on for XML RPC traffic
+    xmlrpc_host = u"localhost"
+    
+    # Port to listen on for XML RPC traffic
+    xmlrpc_port = 8000
+    
+    # Url where wiki is located (for reverse XML RPC traffic)
+    wiki_url = u"http://localhost:8080/"
+    
+    # A secret shared with Wiki , must be the same in both
+    # configs for communication to work.
+    #
+    # CHANGE IT TO A LONG RANDOM STRING, OR YOU WILL HAVE A SECURITY ISSUE!
+    secret = u"8yFAS(E-,.c-93adj'uff;3AW#(UDJ,.df3OA($HG"