TELEGRAM_TOKEN
Your Telegram bot Token (get from BotFather)GROUP_WHITELIST
Enter the group id that can use the bot (see .env_example)POSTGRES_URL
skip this, user belowPOSTGRES_HOST
Postgresql HostPOSTGRES_USER
Postgresql UserPOSTGRES_DATABASE
Postgresql Database namePOSTGRES_PASSWORD
Postgresql PasswordPOSTGRES_PORT
Postgresql portMODERATE_ON
set true/false so that some types of chat can only be sent if xp is more than min xpMIN_XP
if MODERATE_ON set true, set MIN_XP (default 500)LESS_BOT_SPAM
set true/false to automatically delete chats from bots based on time BOT_EXPIRATIONBOT_EXPIRATION
(default 3)- Import db to your Postgresql database, if there is an error when importing, ignore the important thing the table is all there.
See .env_example change to .env and change the contents , or set Config Vars on heroku.
/help
Get help/xp
Get current XP (or reply user to get current xp that user)/level
Get current level (or reply user to get current level that user)/topranks
Get top rank from 1-3/ranks 10
Get list rank from 1-10 (change 10 to what you want)/rank
Get info rank, /rank png (to export to image)
- NodeJS
- PostgreSQL for Database
- Dependencies
If you want another xp telegram bot, you can see my reference for making this bot:
https://github.com/terorie/xpbot-telegram