This is a simple bot that forwards messages from a Discord channel to a Telegram channel when a message includes a Solana token address. This is a self-bot.
Update_1.mp4
- Forward messages from a Discord channel to a Telegram channel.
- Forward DM
- TypeeScript
- Discord API
- Telegram API
- Node 18.0 or higher
-
Clone the repository:
https://github.com/btcoin23/D2T_bot_mac.git
-
Go to the project directory:
cd D2T_bot_mac
-
Install the required packages:
npm install
-
Create a .env file in the root directory of the project and add the following variables:
DISCORD_USER_TOKEN= TELEGRAM_TOKEN= TELEGRAM_CHANNEL_ID=
-
Run the script:
npx ts-node index.ts