Miss any of our Open RFC calls?Watch the recordings here! »

telegram-xp

1.1.0 • Public • Published

Telegram XP bot

Blocks pictures + videos from low XP users

Statistics

Keeps track of group statistics

Statistics

Configuration:

  • $REDIS_URL Redis host:port (optional)
  • $REDIS_PREFIX Redis ZSET key prefix (one key per group)
  • $TELEGRAM_TOKEN BotFather token
  • $MIN_XP Minimum XP before pics/vids allowed
  • $RATE_LIMIT User cooldown after earning XP (seconds)
  • $LESS_BOT_SPAM Delete /xp and /rank requests + responses after a while to reduce group chat clutter
  • $BOT_EXPIRATION Time to delete bot messages from the group (requires option above)

Commands:

  • /xp Get current XP
  • /ranks Get top XP users

Keywords

Install

npm i telegram-xp

DownloadsWeekly Downloads

3

Version

1.1.0

License

MIT

Unpacked Size

8.29 kB

Total Files

4

Last publish

Collaborators

  • avatar