r/programmingrequests • • 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

3 comments sorted by

View all comments

Show parent comment

1

u/dewrot Jun 19 '22

I actually figured it out. Thank you for you reply!

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.