1
0
mirror of https://github.com/MrDetonia/Maki.git synced 2024-11-22 11:54:16 -05:00

change .markov lookup

This commit is contained in:
Zac Herd 2016-12-01 20:04:09 +00:00
parent 1a11d603a6
commit 92e767cd88

2
bot.py
View File

@ -253,7 +253,7 @@ def on_message(message):
response = "I can't find that user!"
if os.path.isfile('./markovs/' + target) and target != '':
mc = markov.Markov(open('./markovs/' + target))
mc = markov.Markov(open('./markovs/' + message.server.id + '-' + target))
response = mc.generate_text(random.randint(20,40))
elif target != '':
response = "I haven't seen them speak yet!"