forked from lilydjwg/xmpptalk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py.example
64 lines (56 loc) · 1.63 KB
/
config.py.example
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
# vim:se ft=python:
import re
import datetime
import logging
# NOTE: search for "TODO" to config, and then remove the '.sample' suffix
# TODO: your bot's JID
jid = '[email protected]/bot'
private = False
# TODO: your JID
root = '[email protected]'
trace = True
# TODO: type a random string below
salt = b'anything random is ok.' # used to encryt user's jid, keep this secret!
logging_level = logging.INFO
timezoneoffset = datetime.timedelta(hours=8)
# nick_change_interval = datetime.timedelta(days=10)
# should we warn about the unsecurity about unencrypted GTalk v105?
warnv105 = True
# TODO: select a database
database = 'test'
# connection = dict(
# host = 'localhost',
# port = 27017,
# )
# database_auth = ('user', 'pass')
# collection_prefix = ''
# 中文算两个英文字符宽度
nick_maxwidth = 20
nick_max_change = 0
nick_allowed_symbol = '+-_@.™ '
# command prefix
prefix = '-'
# how much log we preserve; in bytes
# about 6 entries per kibibytes
# log_size = 524288 #default to 512KiB
settings = dict(
# TODO: the password of your bot
password = 'password',
starttls = True,
tls_verify_peer = False,
# XEP-0092: Software Version xmlns="jabber:iq:version"
# software_name = 'ChatBot',
# software_version = 'pre-alpha',
# set this, or default will reveal your actual os
software_os = 'Linux',
# Which IP to connect?
# server = '127.0.0.1',
)
help_regex = re.compile(r'^\W{,3}help\s*$')
# logging to stderr, or fork to background (`--fork' commandline option
# overrides this)
# stderr_logging = True
additional_logging = [
# handler, level, use_color=False
# (logging.FileHandler('xmpp.log'), logging.DEBUG, True),
]