you have to get the good or true ending to get the code.
atleast thats what the thingy says when you read it.
if it's not there try google or the lucky/unlucky numbers that you get in the comedy section which wassssssssssss.... idk the order but 4,7,2,13 i think 7 and 2 being lucky numbers.