In this post I build a Twitter growth bot using Node and Google Cloud Functions. This was originally a live twitter thread.
The children are finally asleep. I have an idea for a Twitter growth tool. Follow along here as I #buildinpublic
đź’ˇ Idea
A bot that automatically tweets once a week as me and tags the 5 accounts with the most replies to my tweets in the last week.
All you have to do to be tagged is to reply to my tweets.
We’ll use Google Cloud Scheduler and Cloud Functions
It took me a while to find a quickstart for cloud functions and typescript 👇🏻
github.com/GoogleCloudPla…
Hello World đź‘Ť
I don’t have access to Twitter API v2 yet. But I have an old V1 app so let’s use that for this experiment.
I’m using this twitter API client
Let’s get the last 10 replies to my tweets.
So we can get the last X replies.
Now to:
- Make sure they aren’t over a 7 days old
- Collect all the users and count them
Well, that seemed to work well.
Now we use Cloud Scheduler to run our function every Friday.
• • •
That’s the end of the Twitter thread. It was great fun to build this tool and I’m getting great engagement from it each week. If you want more like this, follow me on Twitter.