DEV Community

Discussion on: Send daily automated tweets from a Google Sheet by using Google Scripts

Collapse
 
igyver profile image
Kay

Hi Alberto, I like that Tutorial. Thank you very much for the work.

I just enabled the Google Dev Account and I added the trigger. Unfortunately I cant choos the deployment "Head". It's just showing "Test Environement".

I guess because the account is not yet confirmed. Am I right?

Collapse
 
albertomontalesi profile image
AlbertoM

I'm not sure but I read this on the documentation: Note: There is only ever one head deployment for each Apps Script project. In order to use a head deployment the user invoking the script must have at least read access to the script project. developers.google.com/apps-script/...

Collapse
 
igyver profile image
Kay

Interesting. Is my project, my app and my script. .... Hm, I will check that.

Thread Thread
 
albertomontalesi profile image
AlbertoM

Let me know if you find out the reason so I can add a note to the tutorial

Thread Thread
 
igyver profile image
Kay • Edited

Of course, I will do it.

Today, I checked it and it doesn't worked out. I will give you more details when I checked the log and so on.

Thread Thread
 
igyver profile image
Kay

Alberto, the code ran today and created an error. But the error is nothing with the trigger.

It's just that I missed to initialize the "identifier".

Now it's done and lets see how it works. We keep in touch. :)

Thread Thread
 
albertomontalesi profile image
AlbertoM

Awesome, something I forgot to implement was a check if "today" there's a tweet to post. You might want to put the code to send a tweet inside of an "if else".

Thread Thread
 
igyver profile image
Kay

Good point. I take it to my list of future improvements.

So I checked the googletwitterbot and now it works perfect! Thank you very much. '

I have the google sheet and can put in advance the content inside and can be sure that on the proper day the content is online.

Great is, that I can in advance create twitter reminders for any deadline and I can remind follower about the reaching end of a period.