0
Good evening, everyone.
I’m developing a simple chatbot for testing purposes, but I ran into a problem. I have a user, when starting a conversation, a bot is generated, and this bot has an array of messages and responses. I want every time I send a message, it interprets, responds, and both the message and the response are stored in the same object. However, currently, whenever I want to put it, it overwrites the previous message, as if it were not an array!
Would anyone know why?
Read: Post code as image.
– NoobSaibot