Harry didn't promise anything but when Hermione and Ron asked the same thing later he decided that maybe it was a bad idea to get so drunk again. Plus Peeves was ten times more annoying when nursing a hangover.