Giter Club home page Giter Club logo

forcesub's Introduction

Force Subscribe Bot

Forces a user to join your group/channel so as to be able to message in a group.

Features

  • Checks for all newly joined members with a customisable welcome message.
  • Checks for users who are already in the group but has not joined the channel.

Variables

  • API_ID - Your telegram api id from my.telegram.org
  • API_HASH - Your telegram api hash from my.telegram.org
  • BOT_TOKEN - Your telegram bot token.
  • CHANNEL - Username of the channel/group where users must join.
  • WELCOME_MSG - The welcome message you want. WELCOME_NOT_JOINED - Welcome message to show if user is not in the channel.
  • ON_JOIN - True/False - Set as True if the user must be muted, if not in Channel/group, directly when he joins.
  • ON_NEW_MSG - True/False - Set as True if the user must be muted, if not in Channel/group, on sending a message.

Note: WELCOME_MSG and WELCOME_NOT_JOINED can both be formatted using parameters like {mention}, {title}, {fullname}, {username}, {name}, {last}, {channel}

Deploy to heroku

Deploy

Deploy locally

  • git clone https://github.com/xditya/ForceSub
  • cd ForceSub
  • pip3 install -U -r requirements.txt
  • touch .env, nano .env and fill in the vars, Ctrl+S, Ctrl+X
  • Run the bot, python3 bot.py

Credits

forcesub's People

Contributors

xditya 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.