/AccountsGenBot

Primary LanguagePythonGNU Affero General Public License v3.0AGPL-3.0

Account Generator Bot

Account Generator Bot, runs on python (telethon), with redis as database.

Variables


  • Mandatory Vars -
    APP_ID and API_HASH - Get it from here
    BOT_TOKEN - Get it from @BotFather
    REDIS_URI and REDIS_PASSWORD - Get it from RedisLabs, tutorial here.
    OWNER_ID - Your telegram user id, get it by sending /info to some group management bot.
    ACCOUNTS - Raw link to the accounts you need the users to generate. Tutorial here.


  • Other vars -
    ACC_NAME - Name of the account that the bot is to generate.
    CHANNEL - Link/Username of your telegram group/channel. Leave empty for no force join.
    START - Custom start message. Use {mention} in it to mention the user who is currently using the commands.

Deploying

You can deploy this bot anywhere.

Heroku

Deploy

Local Machine

Open a terminal.
Clone the repository git clone https://github.com/xditya/AccountGenBot && cd AccountGenBot
Install requirements: pip3 install -r requirements.txt
Create a .env file with the vars. Follow these:
.touch .env
nano .env
Now open a notepad, copy the contents in .env.sample and edit the values as per your requirements. Copy that and paste it in the terminal.
CTRL + X and CTRL + S to save and exit.
python3 bot.py
Now send /start to you bot to see if it is running!

Support

Join the telegram group for support and the channel for updates.

Report bugs, give feature requests there..
Do fork and star the repository if you liked it.

Disclaimer

GNU Affero General Public License v3.0
Licensed under GNU AGPL v3.0.
Selling the codes to other people for money is strictly prohibited.