This is my template for running various aria mirrorbots with one common workflow by doing minimal modifications.
You can use any of these scripts
- https://github.com/lzzy12/python-aria-mirror-bot
- https://github.com/magneto261290/magneto-python-aria
- https://github.com/SVR666/LoaderX-Bot
- https://github.com/iamLiquidX/MirrorX
- https://github.com/MaxxRider/Maxx-Mirror-Pro
- https://github.com/ghostmirrorlab/python-aria-mirror-bot
Let me know if there's any more like these modified forks.
To deploy these scripts, you first need to setup the configs, credentials and token. All these requirements are explained in each of the script's repository.
Here's what I'd do to use their repository unmodified.
- I cloned one of those repos and got my own
config.env
,credentials.json
andtoken.pickle
. - Then I uploaded those files in my GitHub Gist with restricted visibility, made them private.
As
token.pickle
is a binary file, I base64-encoded it before uploading it named astoken.pickle.b64
. - I didn't use service accounts, so these three things are all I needed.
If you want to use your custom-designed scripts, you can just remove all mentions of the above three files and ignore step 4 from below.
After that, I had to add some info for the workflow file in Repository (Or Organizaion) Secrets.
- Add your own GitHub Credentials as
GitHubMail
andGitHubName
. - Add your GitHub Personal Access Token as
GH_TOKEN
with most of the admin-read-write permissions (but not with delete permission). - Add the last two part of mirrorbot repo address as
BotRepoSlug
. For example: "lzzy12/python-aria-mirror-bot" when you want to use the original repo. - Add Gist URL for
config.env
,credentials.json
andtoken.pickle.b64
(base64 data of token) asConfigSlug
,CredsSlug
andPickleSlug
. Remember, these three values are full URL. - Add your DockerHub Credentials as
DOCKER_USERNAME
andDOCKERHUB_TOKEN
(API Token, or specifyDOCKER_PASSWORD
as password). - Optionally, give a name for your bot's Docker Image Tag as
BotName
if you want to upload it to your personal DockerHub Registry. Never upload the image as public container repository as it will leak all your bot credentials.
- The MirrorBot script directory will be
/home/runner/botSource
- The workflow will be triggered only on workflow_dispatch.
- When the bot starts, it will run for exactly 340 minutes, then automatically trigger another dispatch.
- The workflow will cleanup the workspace in background, so you will have to wait for 6 to 12 minutes on bot start to get full space.
- So you will get an infinite loop of run with maximum 2-3 minutes of bot downtime.
This repository is for personal use only. Do not abuse GitHub Actions by running multiple instances of these bots in a crowded group which exhausts GitHub's Machine Resources. If you want GitHub to support us by giving out fairly amount of resources to test out our applications, don't get into their radar, keep low.