Giving random key to the user

36 views
Skip to first unread message

Temirlan Murzagaliyev

unread,
Dec 11, 2020, 7:33:27 AM12/11/20
to AI4IMPACT
Hello!

Is there a way to give user a random key to one of the bot's rooms once a template is executed.

Elaboration: assume, bot has rooms: room_a, room_b, room_c, room_d.
Example template:

Q: give key
A: now you have access to {some random room_n}
K: $back {this room_n}
--

Hope it is clear!

Thank you!

Bot Master

unread,
Dec 13, 2020, 6:50:37 PM12/13/20
to AI4IMPACT
You can use ; alternatives to solve this problem.

Eg:

Q: give key
A: now you have access to {some random room_n}
K: $back room_a ; $back room_b ; $back room_c ; $back room_d
--
Remember the spaces around
;
Reply all
Reply to author
Forward
0 new messages