aboutsummaryrefslogtreecommitdiff
path: root/markov
diff options
context:
space:
mode:
Diffstat (limited to 'markov')
-rw-r--r--markov/markov.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/markov/markov.py b/markov/markov.py
index 3acf2dd..8081b07 100644
--- a/markov/markov.py
+++ b/markov/markov.py
@@ -404,7 +404,9 @@ class Markov(commands.Cog):
next_token, frequency = row
if random.randint(1, completion_count) <= frequency:
- if next_token in PUNCTUATION:
+ if next_token == "/":
+ result = result[:-1] + next_token
+ elif next_token in PUNCTUATION:
result = result[:-1] + next_token + " "
else:
result += next_token + " "