relax the clamp bolts at the top & bottom of the triple clamps, if it springs back to nearly straight, twist it back straight.
then re-tighten the clamp bolts.
Then check the forks and handle bars for bends, or other damage.
If you cannot verify there is no further damage take it to a competent shop and have them check it.