现存社区
r/windows10iot
r/Saimaniang
r/chyberpunk
r/Sin_Game
找新家认准导盲犬:
库巴亚西蛆
台湾冲浪司马迁:
Ivon的部落格
鸠占鹊巢建新家法:
用老账号在r/redditrequest申请无人管理的sub,申请成功后把sub转给小号
新家通用automod代码(作者r/junwuciweimian mod 还能说话吗):
# reddit源码链接:https://github.com/reddit-archive/reddit/
# 以下说明根据源码/r2/r2/lib/automoderator.py得出
# 1. 被shadowban用户的内容,必须检查作者名字才能批准,因此所有规则都有~author: 'spez',源码976、1260、1244行
# 2. 带有parent_submission的规则只会对评论生效,因此规则1需要分离,源码1264行
# 3. 带有comment操作的规则只会执行一次,源码350、1302行
# 4. 必须设置reports才能批准被举报的内容,且reports:不能为0,因此设置为-1,源码974行
# 5. approve后,举报数会重置为0,因此为了每个举报后都能自动批准,所有规则的reports都不能大于1,源码/r2/r2/models/report.py第124行
# 6. 所有规则必须要有至少一个检查条件才会被执行,否则直接被丢弃,因此给所有规则都加上reports:,源码275、287行
# 7. 带有approve操作的规则只会被执行一次,因此需要为每个批准创建单独的规则,原因未知
# 8. 对已删除的内容进行编辑不会触发automod,原因未知
# 9. 对于发布时就被自动删除的内容,会连续触发两次规则,源码/r2/r2/config/queues.py第130行,/r2/r2/models/admintools.py第102、112行
# 10. 多条规则不能完全一样,完全重复的多条规则只会被当成一条,因此每条规则要稍微修改一点,源码1215行
# 评论后自动批准主题帖
type: comment
~author: 'spez'
parent_submission:
reports: -1
action: approve
action_reason: 'approve post after replied'
---
# 举报提示
reports: 1
comment: '你被举报了,幸好本鼠及时赶到帮你自动忽略了举报'
---
# 视频下载
type: submission
domain: 'v.redd.it'
comment_stickied: true
comment: '[视频下载](https://rapidsave.com/info?url={{permalink}})'
---
# 自动批准所有内容,利用原创内容标记(Original Content)特性
# 自动批准主题帖
# 开始前先清除原创标记
type: submission
is_original_content: true
set_original_content: false
reports: -1
---
# 只批准没有原创标记的主题帖,同时批准后立刻加上原创标记,防止触发其他规则
type: submission
~author: 'spez'
is_original_content: false
set_original_content: true
reports: -1
action: approve
action_reason: 'unspam'
---
type: submission
~author: 'spez'
is_original_content: false
set_original_content: true
reports: -1
action: approve
action_reason: '1st approval'
---
type: submission
~author: 'spez'
is_original_content: false
set_original_content: true
reports: -1
action: approve
action_reason: '2nd approval'
---
# 省略重复规则
type: submission
~author: 'spez'
is_original_content: false
set_original_content: true
reports: -1
action: approve
action_reason: '100th approval'
---
# 结束后再次清除原创标记
type: submission
is_original_content: true
set_original_content: false
reports: -2
---
# 自动批准评论
type: comment
parent_submission:
is_original_content: true
set_original_content: false
reports: -1
---
type: comment
~author: 'spez'
parent_submission:
is_original_content: false
set_original_content: true
reports: -1
action: approve
action_reason: 'unspam'
---
type: comment
~author: 'spez'
parent_submission:
is_original_content: false
set_original_content: true
reports: -1
action: approve
action_reason: '1st approval'
---
type: comment
~author: 'spez'
parent_submission:
is_original_content: false
set_original_content: true
reports: -1
action: approve
action_reason: '2nd approval'
---
# 省略重复规则
type: comment
~author: 'spez'
parent_submission:
is_original_content: false
set_original_content: true
reports: -1
action: approve
action_reason: '100th approval'
---
type: comment
parent_submission:
is_original_content: true
set_original_content: false
reports: -2
---
# 测试,自动举报所有内容
# moderators_exempt: false
# reports: -1
# action: report
# action_reason: 'automod report test'
# ---
# 测试,检测所有编辑行为
# is_edited: true
# comment: 'edit detected'
# ---