Simple bot Codding Help!

Hey any one can help me i made a application system like if someone type +apply the bot sends question in their dms i want to add a feature like if we type +cancel in dms the application message will close…

Any one can help me with this. Just need a idea.