Implement a number of small changes
This commit is contained in:
@@ -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,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
@@ -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
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user