2023-06-19 20:10:37 +00:00
|
|
|
# ascendance-of-a-bookworm-bot
|
|
|
|
|
|
|
|
**secrets.json**
|
|
|
|
```json
|
|
|
|
{
|
|
|
|
"lemmy": {
|
|
|
|
"username": "string",
|
|
|
|
"password": "string"
|
|
|
|
},
|
|
|
|
"reddit": {
|
|
|
|
"app_id": "string",
|
|
|
|
"app_secret": "string",
|
|
|
|
"refresh_token": "string",
|
|
|
|
"redirect_uri": "string"
|
|
|
|
},
|
|
|
|
"discord": {}
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
2023-09-18 19:04:44 +00:00
|
|
|
**config.toml**
|
|
|
|
```toml
|
|
|
|
[urls]
|
|
|
|
instance = "base URL of Lemmy Instance"
|
|
|
|
uptime_kuma = "Uptime Kuma Ping URL"
|
|
|
|
|
|
|
|
[settings]
|
|
|
|
config_reload = 360 # Time in Minutes between Config reloads
|
|
|
|
|
|
|
|
|
|
|
|
[[feeds]]
|
|
|
|
id = 0 # incrementor, only used for correctly matching post history data
|
|
|
|
series_slug = "ascendance-of-a-bookworm" # series slug on J-Novel Club
|
|
|
|
|
|
|
|
[communities]
|
|
|
|
chapter = "aobprepub" # Community for Chapter Posts of the Series
|
|
|
|
volume = "aoblightnovel" # Community for Volume Posts of the Series
|
|
|
|
|
|
|
|
|
|
|
|
[[feeds]] # See previous example
|
|
|
|
id = 1
|
|
|
|
series_slug = "ascendance-of-a-bookworm-short-story-collection"
|
|
|
|
|
|
|
|
[communities]
|
|
|
|
chapter = "aobprepub"
|
|
|
|
volume = "aoblightnovel"
|
2023-06-19 20:10:37 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
posts.json
|
|
|
|
```json
|
|
|
|
[
|
|
|
|
{
|
2023-09-18 19:04:44 +00:00
|
|
|
"id": number,
|
2023-06-19 20:10:37 +00:00
|
|
|
"title",
|
2023-09-18 19:04:44 +00:00
|
|
|
"last_volume_slug": "string",
|
|
|
|
"last_volume_time": "string",
|
|
|
|
"last_part_slug": "string",
|
|
|
|
"last_part_time": "string"
|
2023-06-19 20:10:37 +00:00
|
|
|
}
|
|
|
|
]
|