Cut the chicken into bite-sized pieces. Mix the soy sauce, garlic, ginger, oyster sauce, onions, and hot sauce. Pour the mixture over the chicken, stir to coat, and then marinate as time permits (several hours or overnight).
Break up the rice clumps before starting. Heat a large wok or skillet on medium-high heat with about a tablespoon of oil.
Add the lightly beaten eggs and stir quickly to break them apart. As soon as the eggs are firm, transfer them to a plate. Try not to overcook them, as they will be going back into the pan when assembling.
Add about a tablespoon of oil to the wok or pan. Once hot, add the marinated chicken and lightly season with salt and pepper. Saute for 5-6 minutes or until cooked through. Transfer chicken to a plate and set aside.
Add another tablespoon of oil to the wok, followed by onions, garlic, ginger, peas, carrots, and basil (if using). Cook for 2-3 minutes.
Add the rice and stir vigorously for 2-3 minutes. Add the soy sauce, oyster sauce, and about a tablespoon of water to moisten the rice.
Finally, return the eggs and chicken to the pan. Stir well until the chicken is heated through and the mixture is combined. Add pepper flakes or hot sauce if desired.
Adjust seasoning with salt, pepper, and soy sauce as needed. Garnish with chopped scallions and serve.