How do I get lights to quit flashing randomly on 2000 Cadillac DeVille

When I open door unlock doors, take keys out of ignition, passenger door opens they flash then randomly driving down the road started when my battery went dead got a jump n alarm wouldn't stop goin off so I unhooked the horn part it but every since then the inside lights n the hazard lights flash for bout 20 to 40 seconds at a time how can I get it to reset n not do that any more

Asked by for the 2000 Cadillac DeVille