Is there a variable which holds id of users which used a bot?
w
wooden-beard-40210
06/06/2024, 6:06 PM
There is no variable like this, but for exemple you can store the user id at the beginning of a conversation in a table , and check if this id is already in the table or not
g
green-table-87234
06/06/2024, 8:20 PM
Is this user id in event.userid?
w
wooden-beard-40210
06/06/2024, 8:28 PM
yes you're right !
g
green-table-87234
06/06/2024, 9:07 PM
Can I access that table like an object? For example tableName.userid === event.userid
w
wooden-beard-40210
06/07/2024, 9:55 AM
Hum you need to loop on all the entries of the table and check if one is equal to event.userid