I Am Partly Blind But Can Still See Riddle

Riddle: I am partly blind but can still see. I have legs but only use them for sleeping. What am I?

Answer: bat