Skip to content

Mengerian/echanTGbot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

XEC Telegram Bot

eChan Telegram bot for group management and data queries.

Features

  • Conversational Q&A: mention @alitayinGPTbot or the keyword echan; DM supported.
  • Group management: spam detection and simple anti-impersonation.
  • Whitelist Keywords: /whitelisting <keyword> to request whitelisting (bypasses spam detection, requires admin approval); /listwhitelist and /removewhitelist for admins.
  • Price: /price returns the latest XEC price.
  • Avalanche: /ava returns the latest network summary.
  • Explorer: /explorer <address> [page] to query address info by page.
  • Report: /report (reporters only).
  • User Registration: /signup <address> to register eCash address.
  • Token Sending: /send <amount> for XEC or /send <tokenId|alias> <amount> for SLP/ALP tokens (admin only, reply to user message, supports aliases like oorah, auto-detects token type).
  • Admin Commands: /addlicense, /removelicense, /listlicenses, /getaddress, /listaddresses.

Quick Start

1. Install dependencies

npm install

2. Configure environment variables

Create a .env file in the project root:

# Telegram Bot
TELEGRAM_TOKEN=your_telegram_bot_token
BOT_USERNAME=your_bot_username

# Bot Wallet (for token sending)
MNEMONIC="your twelve word mnemonic phrase"

# Admin Users (comma-separated usernames)
ALLOWED_USERS=username1,username2

# Other configurations...

3. Start the bot

npm start

Documentation

License

MIT

About

echanTGbot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%