mirror of
https://github.com/UiO-Gaming/mustafa.git
synced 2026-11-05 13:56:48 +01:00
use built in text replacement for non regex expressions
This commit is contained in:
1 file changed
+1
-1
+1
-1
@@ -63,7 +63,7 @@ class Misc(commands.Cog):
|
||||
tekst = re.sub(r"n([aeiou])", r"ny\1", tekst, flags=re.IGNORECASE)
|
||||
tekst = re.sub(r"N([aeiou])", r"Ny\1", tekst)
|
||||
tekst = re.sub(r"th", "d", tekst, flags=re.IGNORECASE)
|
||||
tekst = re.sub(r"ove", "uv", tekst)
|
||||
tekst = tekst.replace("ove", "uv")
|
||||
|
||||
# TODO: add kaomoji? https://kaomoji.moe/
|
||||
|
||||
|
||||
Reference in new issue
Block a user