This is how I built a Twitter bot that posts random cat posts from Reddit.

This page summarizes the projects mentioned and recommended in the original post on dev.to

Our great sponsors
  • Appwrite - The Open Source Firebase alternative introduces iOS support
  • InfluxDB - Build time-series-based applications quickly and at scale.
  • SonarLint - Clean code begins in your IDE with SonarLint
  • kmongo

    KMongo - a Kotlin toolkit for Mongo

    KMongo - for chit-chatting with MongoDB.

  • Twitter4J

    Twitter4J is an open-source Java library for the Twitter API.

    When the endpoint of the bot gets triggered by the cron-job, the postNewTweet() function in PostNewTweet.kt will trigger the Twitter endpoint through the Twitter4J library, which will post the data that is fetched from fetchRandomPost().

  • Appwrite

    Appwrite - The Open Source Firebase alternative introduces iOS support. Appwrite is an open source backend server that helps you build native iOS applications much faster with realtime APIs for authentication, databases, files storage, cloud functions and much more!

  • ktor-plugins

    Various Ktor extensions and plugins.

    Ktor Plugins:ktor-api-key - It is a simple authentication provider for Ktor that verifies the presence of the API key from the header.

  • catktorbot

    An automated bot that posts cat pictures from selected subreddits every third hour. Besides that, you can fetch the previously posted data through the API.

    View on GitHub

  • MongoDB

    The MongoDB Database

    MongoDB - for storing previous posts that are posted by the bot, which can be retrieved by the API.

  • sidekiq

    Sidekiq worker on Render (by render-examples)

    Render - for deploying the project using Docker.

  • ktor

    Framework for quickly creating connected applications in Kotlin with minimal effort

    Ktor - for building the bot, API, and posting respective data to the database.

  • InfluxDB

    Build time-series-based applications quickly and at scale.. InfluxDB is the Time Series Platform where developers build real-time applications for analytics, IoT and cloud-native services. Easy to start, it is available in the cloud or on-premises.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts