ATOMS: ALMA Three-millimeter Observations of Massive Star-forming regions - VIII. A search for hot cores by using C₂H₅CN, CH₃OCHO, and CH₃OH lines