Please, read the relevant Apps Script documentation to learn how to use Apps Script correctly, it has comprehensive guides for begginers like you. Never run code you don't know what is doing as it could be malicious. When copy pasting code always make sure you know what is doing.
Issue:
This is because you added some new code that needs authorization but you never executed the script manually or create the trigger after that point in order to give authorization for the recently added service.
Solutions:
Run the script manually and when the authorization window pops up, authorize the script.
or
Delete and create the time trigger again and again the authorization window will pop up and you can authorize the new service.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…