From 8bb07db66fffdff4000b69bfedf99da6d6aebdae Mon Sep 17 00:00:00 2001 From: F <87889863+fr33n0w@users.noreply.github.com> Date: Sun, 10 Aug 2025 14:19:14 +0200 Subject: [PATCH] Update index.mu 1.4b last edit --- index.mu | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/index.mu b/index.mu index 208428e..5e50f03 100644 --- a/index.mu +++ b/index.mu @@ -3,7 +3,12 @@ import os, sys, json, time, random, re, sqlite3 DB_PATH = os.path.join(os.path.dirname(__file__), "chatusers.db") +# EDITABLE SETTINGS: +MAX_CHARS = 100 # Adjust as needed to split messages after N chars +DISPLAY_LIMIT = 25 # Adjust how many visible messages you want in the UI + +# Antispam filters: spam_patterns = [ r"buy\s+now", r"free\s+money", @@ -215,7 +220,6 @@ except: log_file = os.path.join(os.path.dirname(__file__), "chat_log.json") -DISPLAY_LIMIT = 25 debug = [] try: @@ -464,10 +468,7 @@ colors = [ def get_color(name): return colors[sum(ord(c) for c in name.lower()) % len(colors)] -# Define helper function to split long messages - -MAX_CHARS = 100 # Adjust as needed - +# Define helper function to split long messages using MAX CHARS const def split_message(text, max_chars): words = text.split() lines = []