A Discord bot that allows users to post messages to X (Twitter) and Bluesky simultaneously through simple commands.
- Post to X (Twitter)
- Post to Bluesky
- Post to both platforms simultaneously
- Simple Discord command interface
- Python 3.8 or higher
- Discord bot token
- X (Twitter) API credentials
- Bluesky account credentials
- Clone the repository:
git clone https://github.com/allgeo/discord-bsky-x-bot.git
cd discord-bsky-x-bot
- Install dependencies:
pip install -r requirements.txt
- Create a
.env
file based on the.example.env
template and fill in your credentials:
cp .example.env .env
The bot responds to the following commands:
!post x [message]
- Post to X (Twitter)!post bsky [message]
- Post to Bluesky!post both [message]
- Post to both platforms
Examples:
!post x "Hello, X/Twitter!"
!post bsky "Hello, Bluesky!"
!post both "Hello, X/Twitter and Bluesky!"
- Create a new application at Discord Developer Portal
- Create a bot for your application
- Enable message content intent in the bot settings
- Copy the bot token to your
.env
file
- Create a Bluesky account
- Generate an app password
- Add your username and app password to the
.env
file
- Refer to Twitter Developer Platform for instructions on how to create an app and generate API keys and tokens
Contributions are welcome. This is an ongoing project and will be updated with more features over time.