Skip to content

ps2802/moongent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Moongate Telegram Strategy Bot

Telegram bot for Solana token trading via Moongate API.

Features

  • /balance - Check wallet portfolio
  • /token SYMBOL - Analyze token (TRACKR format)
  • /trending - Top 3 Solana trending tokens
  • /swap AMT FROM -> TO - Execute swaps with confirmation
  • Number selection (1,2,3) + amount input for buying

Deployment

Railway (Recommended)

  1. Fork/push this repo to GitHub
  2. Create new Railway project
  3. Connect GitHub repo
  4. Add environment variables (see below)
  5. Deploy

Environment Variables

TELEGRAM_BOT_TOKEN=your_bot_token_from_botfather
MOONGATE_JWT=your_jwt_from_wallet.moongate.one
ALLOWED_TELEGRAM_USER_ID=your_telegram_user_id

Getting Credentials

Telegram Bot Token:

  • Message @BotFather
  • Create bot → copy token

Moongate JWT:

Your Telegram ID:

  • Message @userinfobot

Testing

After deploy, test in order:

  1. /start → Shows menu
  2. /balance → Shows portfolio
  3. /token SOL → Token info
  4. /trending → Top 3 tokens
  5. Reply 1 → Select token
  6. Reply 5 → Set amount
  7. Click Confirm → Execute swap

Architecture

  • Node.js 18+
  • Direct axios polling to Telegram API
  • Moongate MCP Server for blockchain ops
  • DexScreener API for trending data
  • Amplitude for analytics (optional)

Files

  • index.js - Main bot entry point
  • moongate.js - MCP client wrapper
  • analytics.js - Amplitude tracking
  • package.json - Dependencies

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors