This Go package provides a Discord bot that reads messages from specified Discord channels, stores them in order of when the messages were delivered in PebbleDB, and then sends them to a specified Discord channel. It includes functionality to handle message content, message pins and attachments, and ensures proper error handling and resource cleanup.
- Reads messages from specified Discord channels.
- Stores messages in order PebbleDB.
- Sends stored messages to a specified Discord channel.
- Handles message content and attachments.
- Ensures proper error handling and resource cleanup.
-
Clone the repository:
git clone https://github.com/yourusername/discord-ch-merge.git cd discord-ch-merge
-
Build:
go build -o discord-ch-merge .
The bot requires the following configuration parameters:
FROM
: A list of source channel IDs to read messages from.TO
: The destination channel ID to send messages to.TOKEN
: The Discord bot token.
You can set these parameters using environment variables or command-line flags.
Run the bot with the required configuration:
./discord-ch-merge --from <source_channel_id> --to <destination_channel_id> --token <bot_token>
Example:
./discord-ch-merge --from 123456789012345678 --to 987654321098765432 --token YOUR_BOT_TOKEN
This project is licensed under the MIT License.
Contributions are welcome! Please open an issue or submit a pull request.