Skip to content

Description

Our Twitter notification module is designed to allow your community to automatically follow new tweets from their favorite creators directly on Discord! In addition, it automatically updates the name of a voice channel to display the number of followers of the Twitter account in real time.

  1. Twitter account monitoring
  2. The module regularly checks the configured Twitter accounts for any new messages posted. You can configure multiple accounts to be monitored simultaneously 💬.

  3. Automatic notification
  4. As soon as a new tweet is detected, the module automatically creates a notification in the configured Discord channel with the link. Tweets are added to a list, and every minute the module takes one tweet and sends it to the chat room to avoid spam.

    Twitter notification image
  5. Notification customization
  6. You can configure:

    • 📢 The role to mention when a new tweet is posted
    • 🎯 The destination channel for notifications
    • ⏱️ The frequency of checking for new tweets
  • 🎯 Never miss a tweet from your favorite creators again
  • 🤖 Fully automated notification process
  • 📊 Simple, centralized management of accounts to monitor
  • 🔔 Customizable, informative notifications
  • The module does not work by simply downloading the files; it must be integrated into an already functional Discord bot
  • We use Prisma as the ORM for database management. Make sure your project also uses Prisma or adapt the code accordingly
  • A functional Discord bot with the necessary permissions
  • A valid bearer token key -> See the installation section
  • Knowledge of Discord bot development (JavaScript) & database management
  • Directorycommands
    • Directorynotification
      • notification-add.js Slash command implementation
      • notification-list.js Slash command implementation
      • notification-remove.js Slash command implementation
  • Directoryprisma
    • schema.prisma Data model for the module (Prisma)
  • Directoryutils
    • Directorynotification
      • twitter.js Utility functions for Twitter management
    • utils.js Reusable functions
  • .env Required environment variables
  • index.js Script entry point
  • package.json Required dependencies

Here are the versions used for development and testing the script:

  • @prisma/client@6.18.0
  • discord.js@14.24.0
  • dotenv@16.6.1
  • uuid-js@0.7.5
  • axios@0.26.1