-
Notifications
You must be signed in to change notification settings - Fork 0
/
ottomoderator.cfg.example
41 lines (33 loc) · 1.05 KB
/
ottomoderator.cfg.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
; set up according to https://praw.readthedocs.io/en/latest/getting_started/authentication.html#script-application
[reddit]
client_id = <14 character string listed just under “personal use script”>
client_secret = <27 character string listed adjacent to secret for the application>
username = <username of the Reddit account used to register the script application>
password = <password for the Reddit account used to register the script application>
user_agent = /u/<bot username> operated by /u/<your username>
[database]
system = sqlite ; ex: `mysql+pymysql` or `postgresql`
host = localhost
database = ottomoderator.db ; for SQLite this is local file name
; These are not needed for SQLite:
; port = <db port>
; username = <db username>
; password = <db password>
; ---
; logging configuration section
; ---
[loggers]
keys = root
[handlers]
keys = roothand
[formatters]
keys = rootform
[logger_root]
level = INFO
handlers = roothand
[handler_roothand]
class = StreamHandler
formatter = rootform
args = (sys.stdout,)
[formatter_rootform]
format = %(message)s