tx

telegram-xp

Block spam + XP leaderboard for Telegram

Showing:

Popularity

Downloads/wk

0

GitHub Stars

6

Maintenance

Last Commit

8mos ago

Contributors

2

Package

Dependencies

3

Size (min+gzip)

274.2KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

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

Redis keys:

  • ${REDIS_PREFIX}_${GROUP_ID} Leaderboard
  • ${REDIS_PREFIX}_${GROUP_ID}_DELETED_COUNT Number of messages deleted

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100