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/AutoModerator Jun 19 '22
This post was automatically marked as solved but you can manually change this.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.