If it was a minor static shock and your machine can still boot, no big deal. If it was a shock from the machine you'll need to unplug everything and check it over for electrical defects.
If you touched the button and got shocked, its likley the former. If you touched the button, pressed it, and then got shocked, its likley the latter.