The Minecraft Update Bot uses a subreddit wiki page to store customizable post templates. This allows you to configure different post formats for different release types (releases, snapshots, etc.) without restarting the bot.
- **Multiple Configurations:** Different posts for releases, snapshots, legacy versions, etc.
- **Auto-Refresh:** Wiki changes are loaded every 30 minutes automatically
- **Fallback:** If a release type isn't configured, it uses the `default` config
- **No Restart Required:** Changes take effect on the next check cycle
- **Flexible:** Use any text, formatting, and placeholders you want
## Troubleshooting
### Configuration Not Loading
1. Check the bot logs:
```bash
docker-compose logs minecraft-bot
```
2. Verify the wiki page name is exactly `minecraft_update_bot`
3. Ensure the YAML is valid (use a YAML validator if needed)
4. Check that the bot has permissions to read the wiki
### Posts Not Formatting Correctly
- Verify placeholder names are correct: `{version}`, `{release_date}`, `{type}`
- Check that the YAML syntax is correct (indentation matters!)
- Use the pipe `|` for multi-line bodies
### Reverting to Default
If the wiki page is empty or invalid, the bot will use embedded defaults:
```yaml
release:
title: "Minecraft {version} Released!"
body: "# Minecraft {version}\n\nA new version is available!\n\n**Version:** {version}\n**Released:** {release_date}\n\nGet it at [minecraft.net](https://minecraft.net)"
```
## Advanced: Testing Your Configuration
To test without posting to your subreddit:
1. View the bot logs:
```bash
docker-compose logs -f
```
2. Watch for the line:
```
[WIKI_CONFIG] ✓ Loaded X configuration(s)
```
3. This confirms your configs were loaded successfully
4. When a new version is posted, you'll see:
```
[BOT] ✓ Posted Minecraft X.X (release_type)
```
## Wiki Permissions
Make sure the bot account:
- Has **write** permission to edit the subreddit
- Can access the wiki pages
- Has the right to post to the subreddit
If you get permission errors, add the bot account as a moderator with wiki permissions.