All you have to do is breed a Rotom you have enough times until you get a shiny one, and you can only breed a Rotom with a Ditto.
Hope this helped!
EDIT: OK so maybe you can't breed a Rotom, But it was a good concept!
EDIT OF THE EDIT: The concept was so good that it was actually true! Hope this helps!