diff --git a/Bot/utils/actions.py b/Bot/utils/actions.py index ed183f9..3e6526b 100644 --- a/Bot/utils/actions.py +++ b/Bot/utils/actions.py @@ -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 diff --git a/example.env b/example.env index 4d27919..2c0a351 100644 --- a/example.env +++ b/example.env @@ -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