This project is a Node.js server that tracks live streams from Pump.Fun and sends notifications to a Telegram chat when a token starts a live stream. It uses Express for the server, Axios for HTTP requests, and node-cron for scheduling tasks.
node-server/
├── package.json
├── tsconfig.json
├── src/
│ ├── server.ts
│ ├── routes/
│ ├── service/
│ │ ├── pumpfun/
│ │ │ ├── livestream-action.ts
│ │ │ ├── livestream.ts
│ │ │ ├── query.ts
│ │ │ ├── types.ts
│ │ ├── telegram/
│ │ │ ├── server-bot.ts
- Node.js
- Yarn or npm
- Clone the repository:
git clone https://github.com/moeodeh3/pumpfun-livestream-bot
- Navigate to the project directory:
cd pumpfun-livestream-bot
- Install the dependencies:
yarn
- Create a
.env
file in the root directory and add your environment variables. An example.env
file is provided for reference.
To get the bot token and chat ID, follow the instructions in this gist.
To build the project, run:
yarn build
To start the server, run:
yarn start
The server will be running on http://localhost:<PORT>
.
yarn start
: Start the server.yarn build
: Build the project.yarn clean
: Clean the build directory.
GET /
: Health check route to verify the server is running.
- Fetches live streams from Pump.Fun every second.
- Sends a Telegram message when a new live stream is detected.
- Cleans up old live stream entries every 5 minutes.
Pump.Fun has temporarily disabled livestream capabilities for the unforeseeable future, but this will be useful for when it comes back.