aob-lemmy-bot/README.md

57 lines
1.4 KiB
Markdown
Raw Normal View History

2023-06-19 20:10:37 +00:00
# ascendance-of-a-bookworm-bot
2023-12-18 13:22:42 +00:00
**.env**
```bash
LEMMY_USERNAME="BotUserName"
LEMMY_PASSWORD="BotPassword"
2023-06-19 20:10:37 +00:00
```
2023-12-18 13:22:42 +00:00
*Note: Passwords containing special characters might need to be escaped using '\'*
2023-06-19 20:10:37 +00:00
2023-09-18 19:04:44 +00:00
**config.toml**
```toml
2023-12-18 13:22:42 +00:00
instance = "https://lemmy.example.org"
status_post_url = "PostUrlForStatusMonitoring"
config_reload_seconds = 10800
protected_communities = [ "community_where_pins_should_stay" ]
[[series]]
slug = "example-slug"
parted = false
[series.prepub_community]
name = "communityforprepubs"
[series.prepub_community.pin_settings]
pin_new_post_local = true
pin_new_post_community = true
[series.prepub_community.post_body]
body_type = "Custom"
body_content = """
Custom Text for the Post\n\n\
Can contain new lines and [links](https://join-lemmy.org)"""
[series.volume_community]
name = "communityforvolumes"
[series.volume_community.pin_settings]
pin_new_post_local = false
pin_new_post_community = true
[series.volume_community.post_body]
body_type = "Description"
[[series]]
slug = "example-slug-2"
parted = true
[series.prepub_community]
name = "communityforprepubs"
[series.prepub_community.pin_settings]
pin_new_post_local = false
pin_new_post_community = false
[series.prepub_community.post_body]
body_type = "Custom"
body_content = "single line content"
[series.volume_community]
name = "communityforvolumes"
[series.volume_community.pin_settings]
pin_new_post_local = false
pin_new_post_community = false
[series.volume_community.post_body]
body_type = "None"
```