To best explain the process to you, I will briefly show you the payload that you can use to start the process:
{
"input": {
"thread": [
"That's a twitter thread made with flethy.",
"Setup in less than 5 minutes.",
"Create a thread with a single command.",
"Don't trust any 3rd party service."
]
}
}
The process essentially does the following:
That's a twitter thread made with flethy.
counter
1
reply
reply
Actually quite simple!
You can now easily start this flow with the typescript package @flethy/flow:
import { FlowEngine } from "@flethy/flow";
const flow = {}; // flow from above
const input = {
input: {
thread: []
}
}; // input from above
async function main() {
const engine = new FlowEngine({
env: {
env: {},
secrets: {
CONSUMER_KEY: process.env.CONSUMER_KEY,
CONSUMER_SECRET: process.env.CONSUMER_SECRET,
ACCESS_TOKEN: process.env.ACCESS_TOKEN,
ACCESS_TOKEN_SECRET: process.env.ACCESS_TOKEN_SECRET,
},
},
flow,
input,
});
await engine.start();
}
main()
That’s all you need to create a Twitter thread locally in a Typescript project. Of course, it is more comfortable in the cloud. You don’t have to set up anything, set any environment variables or write any code. The following video shows you how it works: Play And at the end you’ll receive your tweet :) I’ve implemented flethy so you don’t have to worry about doing repetitive tasks anymore. If you like the project, give it a star on Github. Feel free to ask questions and give feedback! I’m looking forward to it! And if you want to try out flethy Cloud: https://flethy.com/signup - it’s free!