aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArjun Satarkar <me@arjunsatarkar.net>2024-03-06 09:35:38 +0000
committerArjun Satarkar <me@arjunsatarkar.net>2024-03-06 09:35:38 +0000
commit187554f688cd7c7538b65908d6844cf3b5c818ef (patch)
treebaef61bd325e8253774818a4ae8c1805579293e4
parentc9018e1aebbec8957e0679d23bba40aae4770234 (diff)
downloadaps-cogs-187554f688cd7c7538b65908d6844cf3b5c818ef.tar
aps-cogs-187554f688cd7c7538b65908d6844cf3b5c818ef.tar.gz
aps-cogs-187554f688cd7c7538b65908d6844cf3b5c818ef.zip
markov: don't force to be lowercase
-rw-r--r--markov/markov.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/markov/markov.py b/markov/markov.py
index 9a2884f..d5ed7bf 100644
--- a/markov/markov.py
+++ b/markov/markov.py
@@ -55,7 +55,7 @@ class Markov(commands.Cog):
tokens = (
[""]
+ [
- word.lower()
+ word
for word in re.findall(r"[\w']+|[\.,!?\/]", clean_content)
if len(word) <= MAX_WORD_LENGTH
]