Does somebody know how to ignore the rest of a string after a certain word?
So I want to make a command for a Discord Bot. The problem is that I want him to react to the command, but after the command is a sentence like: "#oracle Can I get rich?" something like this but it does not react to the command because of the sentence. I can`t remove the sentence because the command would be useless without it. This is the current code: Random random = new Random(); string[] oracle = new string[] { "Yes!", "No!", "Maybe!" }; commands.CreateCommand("Oracle").Do(async (e) => { await e.Channel.SendMessage("The answer is: " + oracle[random.Next(2)] ); }); Does anyone know how to solve this? Thanks for every answer ^^