r/programmingrequests • u/dewrot • Jun 12 '22
solved✔️ Need to parse string with variables
So... Im writing Computercraft code, but I have hit a wall. I need to do custom chat commands and dont know how to detect what Im saying... Everything parses as a string and I need to detect a particular phrase.
Prompt: I wanna find a player
EXAMPLE: <dewrot> Locate "player-name"
(needs to know the command "Locate" and variable of "player-name")
1
Upvotes
View all comments
Show parent comment
1
u/dewrot Jun 19 '22
I actually figured it out. Thank you for you reply!