Guest User

Untitled

a guest
Nov 22nd, 2017
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. string stringTakenFromDiscord = "play *songname*,*channelname*";
  2. String[] input = stringTakenFromDiscord.Split(',');
  3.  
  4. //input[0] will be equal to what comes before the comma
  5. //if you were to print it, it would be "play *songname*"
  6.  
  7. //input[1] will be what comes after the comma
  8. //if you were to print it, it would be "*channelname*
Add Comment
Please, Sign In to add comment