Skip to content

Latest commit

 

History

History
67 lines (44 loc) · 1.4 KB

README.md

File metadata and controls

67 lines (44 loc) · 1.4 KB

D2T-msg-forward using Self-Bot

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

Main Features

  • Forward messages from a Discord channel to a Telegram channel.
  • Forward DM

Screenshots

  • Server, Channel message forward image image

  • Direct message forward image image

Tech stack

  • TypeeScript
  • Discord API
  • Telegram API

Prerequisites

  • Node 18.0 or higher

Configuration

  1. Clone the repository:

    https://github.com/btcoin23/D2T_bot_mac.git
    
  2. Go to the project directory:

    cd D2T_bot_mac
    
  3. Install the required packages:

    npm install
    
  4. Create a .env file in the root directory of the project and add the following variables:

    DISCORD_USER_TOKEN=
    TELEGRAM_TOKEN=
    TELEGRAM_CHANNEL_ID=
    
  5. Run the script:

    npx ts-node index.ts
    

Version 2.0 11/27/2024