Chosen Solution

I accidentally hit a cup of water that then spilled all over my Moto X Pure Edition phone.

Lucky for you this particular phone is water repellent. However, that is not the same as water proof. If after the incident you feel like the water has made it inside the device then you should turn it off immediately, put it in a bag, and fill it with rice. The rice will soak up the moisture. Unfortunately you cannot pull off the back to remove the battery on this phone so turning it off will have to do.