Aria/qBittorrent Telegram Mirror Bot With Additional Features
Go to file
ダンクデル // 千鶴 bd8cd834c1 Update README.md 2020-11-13 13:09:03 +00:00
bot add shell and executor 2020-11-13 18:26:33 +05:30
vendor Merge branch 'staging-3.0' 2020-05-09 15:55:40 +05:30
.gitignore Add support for service account 2020-03-24 15:04:24 +05:30
.gitmodules Remove broken direct download link extracters 2020-05-09 00:10:09 +05:30
Dockerfile few changes 2020-11-13 18:12:58 +05:30
LICENSE License source under GPL v3 2019-09-29 17:24:51 +05:30
README.md Update README.md 2020-11-13 13:09:03 +00:00
add_to_team_drive.py Change default name of token file for Service account scripts 2020-04-05 14:48:34 +05:30
aria.bat Specify Download Dir with RPC 2019-09-18 11:48:19 -04:00
aria.sh Project Rebase 2019-12-23 13:26:32 +05:30
captain-definition Fix caprover file 2019-12-24 17:31:50 +05:30
config_sample.env Revert "Implement mega.nz support" 2020-07-31 20:06:01 +05:30
extract added ability of extracting .7z files (#144) 2020-07-31 20:21:42 +05:30
gen_sa_accounts.py Change default name of token file for Service account scripts 2020-04-05 14:48:34 +05:30
generate_drive_token.py Fixed files not being shown which were not uploaded by bot 2019-12-26 14:47:05 +05:30
generate_string_session.py Add support for mirror of telegram files 2020-03-22 15:04:31 +05:30
heroku.yml few changes 2020-11-13 18:12:58 +05:30
netrc fixup after e0f4c4347c 2020-04-15 14:47:33 +05:30
requirements-cli.txt Added separate requirements list for setup scripts 2020-09-13 22:28:06 +05:30
requirements.txt few changes 2020-11-13 18:12:58 +05:30
start.sh Project Rebase 2019-12-23 13:26:32 +05:30

Ayanami

Ayanami

A personal torrent leech bot for Dank-del

Fork of python-aria-mirror-bot

Deploying on Heroku

  • Run the script to generate token file(token.pickle) for Google Drive:
python3 generate_drive_token.py
  • Install Heroku cli
  • Login into your heroku account with command:
heroku login
  • Create a new heroku app:
heroku create appname	
  • Select This App in your Heroku-cli:
heroku git:remote -a appname
  • Change Dyno Stack to a Docker Container:
heroku stack:set container
  • Add Private Credentials and Config Stuff:
git add -f credentials.json token.pickle config.env
  • Commit new changes:
git commit -m "Added Creds."
  • Push Code to Heroku:
git push heroku master --force
  • Restart Worker by these commands:
heroku ps:scale worker=0
heroku ps:scale worker=1	 	

Heroku-Note: Doing authorizations ( /authorize command ) through telegram wont be permanent as heroku uses ephemeral filesystem. They will be reset on each dyno boot. As a workaround you can:

  • Make a file authorized_chats.txt and write the user names and chat_id of you want to authorize, each separated by new line
  • Then force add authorized_chats.txt to git and push it to heroku
git add authorized_chats.txt -f
git commit -asm "Added hardcoded authorized_chats.txt"
git push heroku heroku:master