Skip to content

trigger_info dosen't work. please help me. #120

@sucream

Description

@sucream

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions