Skip to content

sends message to your telegram chat when a livestream starts on pump.fun

Notifications You must be signed in to change notification settings

moeodeh3/pumpfun-livestream-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node Server

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.

Project Structure

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

Getting Started

Prerequisites

  • Node.js
  • Yarn or npm

Installation

  1. Clone the repository:
    git clone https://github.com/moeodeh3/pumpfun-livestream-bot
  2. Navigate to the project directory:
    cd pumpfun-livestream-bot
  3. Install the dependencies:
    yarn
  4. Create a .env file in the root directory and add your environment variables. An example .env file is provided for reference.

Getting Bot Token and Chat ID

To get the bot token and chat ID, follow the instructions in this gist.

Build

To build the project, run:

yarn build

Start

To start the server, run:

yarn start

The server will be running on http://localhost:<PORT>.

Scripts

  • yarn start: Start the server.
  • yarn build: Build the project.
  • yarn clean: Clean the build directory.

API Endpoints

  • GET /: Health check route to verify the server is running.

Functionality

  • 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.

Note

Pump.Fun has temporarily disabled livestream capabilities for the unforeseeable future, but this will be useful for when it comes back.

About

sends message to your telegram chat when a livestream starts on pump.fun

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published