Git Product home page Git Product logo

dreamcatcher_xp's Introduction

DREAMCATCHER XP, Bot Telegram

Telegram bot allow to gain XP, Level and Rank in groups.

Statistics

Configuration:

  • 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 below
  • POSTGRES_HOST Postgresql Host
  • POSTGRES_USER Postgresql User
  • POSTGRES_DATABASE Postgresql Database name
  • POSTGRES_PASSWORD Postgresql Password
  • POSTGRES_PORT Postgresql port
  • MODERATE_ON set true/false so that some types of chat can only be sent if xp is more than min xp
  • MIN_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_EXPIRATION
  • BOT_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.

Commands

  • /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)

Built With

If you want another xp telegram bot, you can see my reference for making this bot:
https://github.com/terorie/xpbot-telegram

dreamcatcher_xp's People

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.