0 votes

I'm building a chatbot for one of my games, and I've run into a few problems. My chatbot works by checking user input (in LineEdit), and matching each word to a tag in a dictionary (like hi would be tagged to greeting, why would be tagged to question). Hypothetically, the tags would be appended to an empty list (greeting question), which would then be checked against another dictionary, which would have combinations of tags matched to responses. The problem with this is that the tags being appended to the list are appended at different times, since Godot does not support the .extend() feature, and the whole chatbot doesn't work. I know this is a big ask, but does anyone have any ideas on either how to fix this or to change it completely? I'm open to any suggestions and thanks in advance.

in Engine by (46 points)

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.