https://github.com/xditya/accountsgenbot
yes
https://github.com/xditya/accountsgenbot
Last synced: over 1 year ago
JSON representation
yes
- Host: GitHub
- URL: https://github.com/xditya/accountsgenbot
- Owner: xditya
- License: agpl-3.0
- Created: 2021-02-07T11:04:26.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-06-20T09:54:51.000Z (about 5 years ago)
- Last Synced: 2025-04-01T21:12:53.544Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 144 KB
- Stars: 28
- Watchers: 3
- Forks: 42
- Open Issues: 0
-
Metadata Files:
- Readme: ReadMe.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://my.telegram.org)
`BOT_TOKEN` - Get it from [@BotFather](https://t.me/BotFather)
`REDIS_URI` and `REDIS_PASSWORD` - Get it from [RedisLabs](https://redislabs.com), tutorial [here](./extras/redisinfo).
`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](./extras/add_accounts.md).
-----------------
-----------------
* 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
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](https://t.me/BotzHubChat) for support and the [channel](https://t.me/BotzHub) for updates.
Report bugs, give feature requests there..
Do fork and star the repository if you liked it.
## Disclaimer
[](https://www.gnu.org/licenses/agpl-3.0.en.html#header)
Licensed under GNU AGPL v3.0.
Selling the codes to other people for money is *strictly prohibited*.