TELEGRAM_TOKENYour Telegram bot Token (get from BotFather)GROUP_WHITELISTEnter the group id that can use the bot (see .env_example)POSTGRES_URLskip this, user belowPOSTGRES_HOSTPostgresql HostPOSTGRES_USERPostgresql UserPOSTGRES_DATABASEPostgresql Database namePOSTGRES_PASSWORDPostgresql PasswordPOSTGRES_PORTPostgresql portMODERATE_ONset true/false so that some types of chat can only be sent if xp is more than min xpMIN_XPif MODERATE_ON set true, set MIN_XP (default 500)LESS_BOT_SPAMset 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.
/helpGet help/xpGet current XP (or reply user to get current xp that user)/levelGet current level (or reply user to get current level that user)/topranksGet top rank from 1-3/ranks 10Get list rank from 1-10 (change 10 to what you want)/rankGet 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
