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:
parent
1a11d603a6
commit
92e767cd88
2
bot.py
2
bot.py
@ -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!"
|
||||
|
Loading…
Reference in New Issue
Block a user