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.
🔄 How the system works
Section titled “🔄 How the system works”- Twitter account monitoring
- Automatic notification
- Notification customization
- 📢 The role to mention when a new tweet is posted
- 🎯 The destination channel for notifications
- ⏱️ The frequency of checking for new tweets
The module regularly checks the configured Twitter accounts for any new messages posted. You can configure multiple accounts to be monitored simultaneously 💬.
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.

You can configure:
✨ System advantages
Section titled “✨ System advantages”- 🎯 Never miss a tweet from your favorite creators again
- 🤖 Fully automated notification process
- 📊 Simple, centralized management of accounts to monitor
- 🔔 Customizable, informative notifications
❗ Important
Section titled “❗ Important”- 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
⚠️ Prerequisites
Section titled “⚠️ Prerequisites”- 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
Files/folders
Section titled “Files/folders”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
Dependencies & Versions
Section titled “Dependencies & Versions”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