-
-
Notifications
You must be signed in to change notification settings - Fork 21
/
appsettings.json
101 lines (101 loc) · 2.23 KB
/
appsettings.json
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
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
}
},
"AllowedHosts": "*",
"Kestrel": {
"Endpoints": {
"Http": {
"Url": "http://*:8123"
}
}
},
// 调试模式
"Debug": false,
// Swagger
"Swagger": false,
"Statistic": true,
// 机器人设置
"Bot": {
"BotToken": "",
"Proxy": null,
"ThrowPendingUpdates": false,
"AutoLeaveOtherGroup": false,
"SuperAdmins": [],
"EnablePlanPost": false,
"PostSecondMenu": false,
"EnableWebPagePreview": false
},
// 频道设置
"Channel": {
"ReviewGroup": "",
"CommentGroup": "",
"SubGroup": "",
"AcceptChannel": "",
"RejectChannel": "",
"SecondChannel": "",
"SecondCommentGroup": ""
},
// 消息设置
"Message": {
"Start": "欢迎使用 心惊报 @xinjingdaily 专用投稿机器人",
"Help": "发送图片/视频或者文字内容即可投稿"
},
// 数据库设置
"Database": {
"Generate": true,
"UseMySQL": true,
"LogSQL": false,
"DbHost": "localhost",
"DbPort": 3306,
"DbName": "xjb_db",
"DbUser": "root",
"DbPassword": "123456"
},
// 投稿设置
"Post": {
"EnablePostLimit": true,
"DailyPaddingLimit": 5,
"DailyReviewLimit": 5,
"DailyPostLimit": 5,
"RatioDivisor": 100,
"MaxRatio": 10,
"PureRetuens": true,
"PureHashTag": true,
"PureWords": "",
"PostExpiredTime": 3
},
// IpInfo设置
"IpInfo": {
"Token": ""
},
// 计划任务
"Schedule": {
"Cron": {
// 处理过期稿件
"ExpiredPostTask": "0 0 0 * * ?",
// 定时发布广告
"PostAdvertiseTask": "0 0 9 * * ?",
// 拒绝频道定时置顶
"RejectChannelTask": "0 0 0 * * ?",
// 已排期稿件定时发布
"PlanedPostsTask": "0 0 0 * * ?",
// 定时更新审核群审核状态
"ReviewStatusTask": "*/30 * * * * ?"
}
},
// 等级设置
"Level": {
// 每个通过稿件获得的经验
"ExpPerAccept": 0.1,
// 每个拒绝稿件获得的经验
"ExpPerReject": 0.01,
// 每个审核稿件获得的经验
"ExpPerReview": 0.05,
// 每个过期稿件获得的经验
"ExpPerExpire": 0.01
}
}