changes to default ban template

This commit is contained in:
2026-03-04 21:56:37 +00:00
parent c84fcc1faa
commit 6346c1a97f
2 changed files with 4 additions and 2 deletions

View File

@@ -35,9 +35,9 @@ def get_flair(flair: str) -> Flair:
def modmail_removal_notification(submission: Row, method: str) -> str:
try:
from config import config as bot_config
ban_template = bot_config.get("ban_template", "[Deleted post](https://reddit.com/comments/{post_id}).\n\nDeleting an answered post, without marking it solved, is against our rules.\n\nYou can read [our rules](https://reddit.com/r/MinecraftHelp/wiki/rules) to see if you're eligible to appeal this ban.")
ban_template = bot_config.get("ban_template", "Your custom ban message is not configured. Please contact the moderators for more information.")
except Exception:
ban_template = "[Deleted post](https://reddit.com/comments/{post_id}).\n\nDeleting an answered post, without marking it solved, is against our rules.\n\nYou can read [our rules](https://reddit.com/r/MinecraftHelp/wiki/rules) to see if you're eligible to appeal this ban."
ban_template = "Your custom ban message is not configured. Please contact the moderators for more information."
ban_text = ban_template.format(post_id=submission.post_id)
return f"""A post has been removed

View File

@@ -15,4 +15,6 @@ SUB_NAME=example_subreddit
MAX_DAYS=180
MAX_POSTS=180
SLEEP_MINUTES=5
# Ban template option
BAN_TEMPLATE=your_ban_template_here