Skip to content

Creating a custom array while running rivescript #128

@bluesky9578

Description

@bluesky9578

hello,

I want to create an array while 'bot' is running and add item to the array.

Example,

+ I like the color *
- you like : <get <star>>
//Add <star> to the 'color' array

And I want to check if there is an item in the defined array.

Example,

//Check if array has <star>
+ Do I like <star>?
- yes, you like <star>
or
-no, you don't like <star>

How can I implement this functionality?

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions