-
Notifications
You must be signed in to change notification settings - Fork 9
/
pipobot.conf.yml
152 lines (140 loc) · 3.54 KB
/
pipobot.conf.yml
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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
# Global parameters for all bots
config:
# Log file for pipobot
logpath: /var/log/pipobot/pipobot.log
# OPTIONAL: if provided, all XMPP messages sent by the bot will be logged here
# xmpp_logpath: /var/log/pipobot/pipobot_xmpp.log
# Force the connection to the XMPP server in ipv4
force_ipv4: True
# Language of the application
lang: en
# A list of directories where modules will be stored
modules_path:
- /usr/share/pipobot/modules
#Database configuration
database:
# Engine used, see sqlalchemy doc (commons are : 'sqlite', 'mysql', 'postgresql')
# If sqlite3 is used, the database file, and the *folder* containing the database
# must be readable/writable by the user executing the bot
engine: sqlite
src: /var/lib/pipobot/pipobot.sqlite3 # For sqlite, path to the database
# For mysql or postgresql, provide 'user', 'password', 'host', 'name' parameters
# List of rooms the bot will join when started
rooms:
-
chan: [email protected]
login: [email protected]
# If not provided, default port is 5222 and the server's address will be guessed from the login
# You can overwrite these settings using a custom address/port
# address: server.other.domain.tld
# port: 5222
passwd: secret
resource: pipobot
nick: Pipobot
modules:
- _nodep
# Groups of modules
groups:
nodep:
- blague
- botanswers
- bourse
- canalplus
- chiffres_lettres
- cmdalacon
- coin
- date
- getjid
- nextprev
- pioche
- raced
- reminder
- roll
- scores
- todo
- url
- wiki
all:
- bashfr
- bashorg
- blague
- botanswers
- bourse
- chuck
- cmdalacon
- date
- getjid
- google
- nextprev
- ola
- pendu
- reminder
- rps
- spell
- todo
- tv
- unicode
- url
- vdm
- xhtml
# For test modes (--unit-test, --script, --interactive)
test:
fake_nick: Pipotest
fake_chan: [email protected]
modules:
- bashfr
- bashorg
- bideetmusique
- bourse
- chiffres_lettres
- cmdfu
- coin
- date
- getjid
- google
- nextprev
- ola
- pendu
- pioche
- roll
- rps
- scmb
- spell
- todo
- vdm
- wiki
#
# Specific configuration of modules
# Please refer to the documentation of these modules
#
modules_config:
user:
admins:
botmpd:
host: localhost
port: 6600
pwd: /secret/
datadir: /path/to/music
hg:
default: repo2
repos:
repo1: /path/to/repo1
repo2: /path/to/repo2
repo3: /path/to/repo3
url:
respost: True
repost-ignore:
- exemple.org
- sub.domain.net
cmdalacon:
config_path: /usr/share/pipobot/modules/cmdalacon/pipobot.cfg
# A module can also define a post_hook parameter
# date:
# post_hook: pipobot.lib.utils.rot13
# After each call of !date, the rot13 function will be called
# A post_hooks can also be defined in the `modules` path.
# If you have a function my_hook defined in pipobot-modules/hooks/test.py, you
# can set post_hook directly to :
# date:
# post_hook: hooks.test.my_hook