The ancients didn't seem to differentiate between the two, which is presumably why both the words "lightning bolt" and "thunderbolt" exist despite being synonyms. Storm gods are typically male (especially the lightning/thunder ones), powerful and irascible (the irascibility is probably a trait because of the command over thunder/lightning, thus the god's power over this aspect of the natural world influences his personality). Rain and wind deities tend to not be portrayed as wrathful as thunder/lightning deities.
https://en.wikipedia.org/wiki/Mariamman
Afroasiatic Middle East[edit]
Canaanite[edit]
Ba'al, Canaanite god of fertility, weather, and war.
Hadad, the Canaanite and Carthaginian storm, fertility, & war god. Identified as Baʿal's true name at Ugarit.
Egyptian[edit]
Horus, the Egyptian beneficial storm, sun, and war god. Personified in the pharaoh.
Set, the Egyptian storm god, lord of the desert.
Hebrew[edit]
Yahweh, Hebrew divine warrior and god of the entire cosmos.
Mesopotamian[edit]
Adad, the Assyrian storm god
Marduk, Babylonian god of water, vegetation, judgment, and magic.