AutoPostBot Personal Project
AutoPostBot is a powerful and versatile automated posting bot written in TypeScript. It can pull content from various sources, such as OpenAI, Reddit, or RSS feeds, and format it according to your preferences. It can then send posts to multiple platforms, such as Twitter, Facebook, or Instagram, using Puppeteer or native APIs. AutoPostBot is designed to streamline the content creation and posting process, saving time and effort for social media managers and individuals looking to automate their content strategy.
Features
Highly Extensible: Easily plug in content generators and destination handlers. You can create your own plugins or use the existing ones.
Customizable Timing: Control the frequency of posts by setting the interval and the chance for each generator. You can also schedule posts for specific times or dates.
Environment Variable Config: Easily change settings without touching the codebase. You can configure the generators, the destinations, the credentials, and the logging options using environment variables.
Logging: Built-in console logs for easy debugging and monitoring. You can see the status of each post, the errors, and the warnings.
How It Works
The bot initializes by loading the enabled generator and destination plugins from the environment variables. Based on the chance assigned to each generator, it selects one to create a post. It then calls the generate method of the selected generator, which returns the content of the post. The bot then emits the post through all enabled destination plugins, which handle the formatting and sending of the post to the respective platforms. The bot repeats this process at the specified interval.