Yeah this is possible I made a very crude version of this before it needs feed two variables but tbh it’s not very practical. Cleetus chatbot - Pastebin.com
So here’s what I’ll tell you to do your pastebin should have this format:
a.match(/Expression1|Expression2/gi)?`Response if either of those Expressions match.`:
a.match(/Expression3|Expression4/gi)?`Response if either of those Expressions match.`:
a.match(/ExpressionX/gi)?`Response that Expression matches.`:
`Response if none match`
So basically the expressions will be in category’s like age so key words for that could be age or old and the regex would look like /age|old/gi if you look at the example I linked you’ll see some of the caragories I have and you can change them however you like. Also worth noting in the case two ore more different expressions are matched from different categories it will respond with whatever response in higher up in the list