-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpraw.ini.example
46 lines (45 loc) · 1.5 KB
/
praw.ini.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
[chroma-test]
domain: reddit.local
ssl_domain: reddit.local
api_domain: reddit.local:443
api_request_delay: 0
validate_certs: false
# If you're testing on a local install of reddit, you'll need to supply
# your own `comment_kind`, `submission_kind`, and `message_kind`
# values, as they may not be the same as reddit.com
# In order to figure those out, do the following:
# Make a user
# Make a subreddit
# Make a post in that subreddit (self posts are easier)
# Make a comment on that post.
# In your reddit clone, start `reddit-shell`
# >>> from r2.models import *
# >>> me = Account._by_name('reostra')
# >>> me._fullname
# 't2_1g'
# Substitute the username you created as appropriate.
# The value you put here is the bit before the underscore, above
redditor_kind: t2
# >>> c = Comment._byID36('16v')
# >>> c._fullname
# 't1_16v'
# where '16v' is the id of a comment you made. You can see
# the id36 of the comment at the end of the permalink, e.g.
# https://reddit.local/r/test/comments/24/more_test/16v
# The first two letters of the fullname ('t1_16v') are the type:
comment_kind: t1
# >>> post = Link._byID36('24')
# >>> post._fullname
# 't5_24'
submission_kind: t5
# >>> sr = Subreddit._by_name('test')
# >>> sr._fullname
# 't4_7'
subreddit_kind: t4
# Finally, send a PM; to yourself works well.
# Note the url, e.g. `https://reddit.local/message/messages/1`
# The id36 is the bit at the end:
# >>> msg = Message._byID36('1')
# >>> msg._fullname
# 't6_1'
message_kind: t6