|
|
||
|---|---|---|
| bot | ||
| vendor | ||
| .gitignore | ||
| .gitmodules | ||
| Dockerfile | ||
| LICENSE | ||
| README.md | ||
| add_to_team_drive.py | ||
| app.json | ||
| aria.bat | ||
| aria.sh | ||
| captain-definition | ||
| config_sample.env | ||
| extract | ||
| gen_sa_accounts.py | ||
| generate_drive_token.py | ||
| heroku.yml | ||
| netrc | ||
| requirements.txt | ||
| start.sh | ||
Slam Mirror Bot
This is a telegram bot writen in python for mirroring files on the internet to our beloved Google Drive.
Fork of python-aria-mirror-bot
Original Source Ayanamileechbot
Some features from magneto-python-aria
Getting Google OAuth API credential file
- Visit the Google Cloud Console
- Go to the OAuth Consent tab, fill it, and save.
- Go to the Credentials tab and click Create Credentials -> OAuth Client ID
- Choose Desktop and Create.
- Use the download button to download your credentials.
- Clone this repo:
git clone https://github.com/breakdowns/slam-mirrorbot mirrorbot/
cd mirrorbot
- Move that file to the root of mirrorbot, and rename it to credentials.json
- Visit Google API page
- Search for Drive and enable it if it is disabled
- Finally, run the script to generate token file (token.pickle) for Google Drive:
pip install google-api-python-client google-auth-httplib2 google-auth-oauthlib
python3 generate_drive_token.py
- Fork this repo, than upload credentials.json and token.pickle to your forks
