Implement a number of small changes

This commit is contained in:
2026-03-03 10:52:02 +01:00
parent 6c4f4ccfa8
commit f519031832
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
import re import re
DB_FILE = "tars_bot.db" DB_FILE = "tars_bot.db"
NWORD_PATTERN = re.compile(r'\bn+[i1!|]+[g9]+[e3]+r+s*\b', re.IGNORECASE) NWORD_PATTERN = re.compile(r'\bn+[i1!|]+[g9]+[e3]+r+s*\b', re.IGNORECASE)
+1 -1
View File
@@ -1,4 +1,4 @@
import random import random
def tars_text(text: str, category: str = "default") -> str: def tars_text(text: str, category: str = "default") -> str:
variants = { variants = {
"success": [ "success": [
+1 -1
View File
@@ -36,7 +36,7 @@ QUIET_FALLBACK_START = 0
QUIET_FALLBACK_END = 7 QUIET_FALLBACK_END = 7
MIN_OBSERVED_HOURS_FOR_LEARNING = 8 MIN_OBSERVED_HOURS_FOR_LEARNING = 8
BOT_VERSION = "6.0.1" BOT_VERSION = "7.0.0"
BOT_START_TIME = datetime.now(timezone.utc) BOT_START_TIME = datetime.now(timezone.utc)
LAST_ERROR_TIME: datetime | None = None LAST_ERROR_TIME: datetime | None = None
+1 -1
View File
@@ -1,4 +1,4 @@
import sys import sys
import os import os
sys.path.insert(0, os.path.dirname(__file__)) sys.path.insert(0, os.path.dirname(__file__))
from tars_bot import bot, DISCORD_TOKEN from tars_bot import bot, DISCORD_TOKEN