From 23ba0fb8fc5070ba30a43035970775247da370f3 Mon Sep 17 00:00:00 2001 From: Arjun Satarkar Date: Tue, 26 Mar 2024 15:26:06 -0400 Subject: teleport: don't teleport within same channel, better text --- markov/markov.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'markov/markov.py') diff --git a/markov/markov.py b/markov/markov.py index d7cf14b..9965d65 100644 --- a/markov/markov.py +++ b/markov/markov.py @@ -36,7 +36,8 @@ class Markov(commands.Cog): async def cog_load(self): with open( - redbot.core.data_manager.bundled_data_path(self) / "init.sql", "r" + redbot.core.data_manager.bundled_data_path(self) / "migrations/init.sql", + "r", ) as setup_script_file: async with aiosqlite.connect(self.db_path) as db: await db.executescript(setup_script_file.read()) @@ -92,7 +93,7 @@ class Markov(commands.Cog): + [ token for token in re.findall( - r"[\w']+|[\.,!?\/;\(\)]||<#\d+>|<@!?\d+>", content + r"[\w']+|[\.,!?/;()]||<#\d+>|<@!?\d+>", content ) if len(token) <= MAX_TOKEN_LENGTH ] -- cgit v1.2.3-57-g22cb