neuralintents icon indicating copy to clipboard operation
neuralintents copied to clipboard

Please add how to get responses in readme file

Open FATCAT47 opened this issue 3 years ago • 1 comments

I can code my own function that randomizes response based on tag but it would be easier to use yours. The issue is I'm having trouble figuring out what to pass instead of "messages".

FATCAT47 avatar Aug 27 '21 02:08 FATCAT47

It's this easy to get random greeting responses but it would be messy

` import random import json

json = json.loads(open("intents.json").read())

greetings = json["intents"][0]["responses"]

result = random.choice(greetings)

print(result) `

FATCAT47 avatar Aug 28 '21 21:08 FATCAT47