-
Notifications
You must be signed in to change notification settings - Fork 71
Closed
Labels
Description
I used example code in ex3.py
i use ver.1.14.9
#!/usr/bin/python3
# Python 3 example
from rivescript import RiveScript
rs = RiveScript()
rs.load_directory("./eg/brain")
rs.sort_replies()
while True:
msg = input("You> ")
if msg == '/quit':
quit()
reply = rs.reply("localuser", msg)
trigger = rs.last_match("localuser")
info = rs.trigger_info(trigger)
print(trigger)
print(info)
print("Bot>", reply)
and this works like this.
You> hi
(hello|hi|hey|howdy|hola|hai|yo) [*]
None
Bot> How do you do. Please state your problem.
You>
So, My question is why trigger_info doen't work properly?
Please answer me thanks.