mirror of
https://github.com/MrDetonia/Maki.git
synced 2024-11-25 20:47:57 -05:00
Fixed missing word at end of markov chains, v0.10.10
This commit is contained in:
parent
3d49ca9775
commit
bb5c4b1131
2
bot.py
2
bot.py
@ -25,7 +25,7 @@ from secret import email,pwd
|
|||||||
name = "Maki"
|
name = "Maki"
|
||||||
|
|
||||||
# bot version
|
# bot version
|
||||||
version = "v0.10.9"
|
version = "v0.10.10"
|
||||||
|
|
||||||
# text shown by .help command
|
# text shown by .help command
|
||||||
helptext = """I am a bot written in Python by MrDetonia
|
helptext = """I am a bot written in Python by MrDetonia
|
||||||
|
@ -41,5 +41,6 @@ class Markov(object):
|
|||||||
w1, w2 = w2, random.choice(self.cache[w2])
|
w1, w2 = w2, random.choice(self.cache[w2])
|
||||||
except KeyError:
|
except KeyError:
|
||||||
break
|
break
|
||||||
|
gen_words.append(w1)
|
||||||
gen_words.append(w2)
|
gen_words.append(w2)
|
||||||
return ' '.join(gen_words)
|
return ' '.join(gen_words)
|
||||||
|
Loading…
Reference in New Issue
Block a user