I see you are using the
Chatbot Tutorial. Make sure you are doing the steps correctly and reading and understanding it.
In
chatbot_getRandomPhraseFromWords(%word) function, you have
if(%phrases !$= "Hello"), but in the Tutorial, it's
if(%phrases !$= ""). Only alter things after you get it working because I see what you were thinking, but that shouldn't have
hello in it.
Secondly,
if(%hasTrigger = chatBot_messageHasTriggerWord(%msg); should just be:
%hasTrigger = chatBot_messageHasTriggerWord(%msg);Lastly, you need to understand how things are structured in programming. Notice your Curly Brackets/Braces ( ->
{ or ->
} ). You should be able to see what is wrong if you understand how they should be placed.
Try reading this to understand how they are placed:
https://forum.blockland.us/index.php?topic=192083.0