Selenium script to automatically start/stop your Seedloaf Minecraft server using GitHub Actions
Completely works online, no download required
⏱️ Setup Time: 5-10 minutes
Warning
I highly recommend to create a 2nd seedloaf account with a role that can only start(or stop as per role) the server (check out the roles in seedloaf). This is incase someone gets hold of your github account, all they can do it start(or stop as per role) server.
If you created your Seedloaf account through Discord (not email), you need to do this first or the automation won't work:
- Add an email to your Seedloaf account
- Unlink Discord from your account
- Change your password in the security tab
- You can re-link Discord after this
- Choose Your Setup Method
- Setup for Discord Bot
- Manual Setup
- How to Run the Workflow
- Common Problems
- How It Works
This thing can be used in two ways. Choose the setup flow you want:
🤖 Option A: For the Discord Bot users
-> for people who want to use the discord bot
→ Jump to Setup for Discord Bot
-> People who want friends to run it directly from GitHub, or don't wanna use Discord bot. They need github account.
→ Jump to Setup for Github users
The Discord bot triggers this GitHub thing for you.
Fork means making your own copy of this thing.
Click the Fork button in the top right corner:
GitHub Actions (the automation) is disabled by default in forked repositories.
Go to the Actions tab in your forked repository and enable it
Secrets are hidden that only this github thing can see. Nobody (not even you after saving them) can view them.
- Go to Settings → Secrets and variables → Actions → Repository secrets
- Click New repository secret
- Create two secrets like that:
- Name:
USERNAME| Value: Your Seedloaf Email - Name:
PASSWORD| Value: Your Seedloaf Password
- Name:
- Try to start server. See the Instructions.md file for a detailed visual guide.
Note: These credentials are completely private and secure. GitHub encrypts them and they cannot be viewed by anyone after you save them.
The Discord bot needs permission to trigger workflows in YOUR forked repository. To give it access, you need to create a special key called a "token".
Go to your GitHub profile settings (not repository settings):
- Click your profile picture → Settings
- Scroll down to Developer settings (bottom of left sidebar)
- Click Personal access tokens → Fine-grained tokens
- Click Generate new token
Configure the token:
- Expiration: No expiration (or set a long duration)
- Repository access: Select "All repositories" (or just your forked repo)
- Permissions: Set these two permissions ONLY:
- Actions: Read and Write
- Workflows: Read and Write
Copy the token immediately - you can't see it again! (you can reset the token tough)
Warning
Do NOT give Contents permission or any other permissions except the mentioned ones! This would let the anyone with token edit your fork. So check if these are the final permissions
Now you need to give the token to the Discord bot. For instructions on how to do this, use the /help command in Discord after inviting the bot.
✅ You're done with Github setup Discord Bot!
This setup lets you and your friends rin this thing directly from GitHub's Actions tab.
Fork means making your own copy of this project.
Click the Fork button in the top right corner:
GitHub Actions (the automation) is disabled by default in forked repositories.
- Go to the Actions tab in your forked repository
- Click the green button to enable workflows
Secrets are hidden passwords that only the automation can see. Nobody (not even you after saving them) can view them.
- Go to Settings → Secrets and variables → Actions → Repository secrets
- Click New repository secret
- Create two secrets:
- Name:
USERNAME| Value: Your Seedloaf email - Name:
PASSWORD| Value: Your Seedloaf password
- Name:
Note
These credentials are completely private and secure. GitHub encrypts them and they cannot be viewed by anyone after you save them.
- Go to the Actions tab
- Click Run Selenium Script (in the left sidebar)
- Click the Run workflow button (top right)
- Click Run workflow again in the dropdown
- Wait 10-15 seconds and refresh the page
- Click on the workflow run to see the logs and verify it worked
✅ You're done! Your server should now be starting.
If you want your friends to be able to start/stop the server:
- Go to Settings → Collaborators → Add people
- Enter their GitHub username
- Give them Write access (they need this to run workflows)
⚠️ Important: After adding collaborators, proceed to Step 6 to prevent them from accidentally breaking the automation!
Branch Protection prevents anyone (including collaborators) from directly editing the main code. They can still run the workflow, just not break it.
- Go to Settings → Branches → Add branch protection rule
- In "Branch name pattern" type:
main - Check "Require status checks to pass before merging"
- In the search box, type
fail-joband select it - Click Create at the bottom
What this does: The fail-job workflow always fails, which means no one can merge code changes into your main branch. You can still run the server start/stop workflow normally.
✅ Setup complete! Share the Instructions.md file with your friends or revome this readme file and rename that file to readme so they know how to run the workflow.
See the Instructions.md file for a detailed visual guide.
Quick version:
- Go to Actions tab
- Click Run Selenium Script
- Click Run workflow → Run workflow again
- To stop the server: Use the dropdown and change "start or stop" to
false - To store login session : set it to `true'
⏱️ How long does it take? The server typically starts within 40-60 seconds after the workflow completes. Faster if you use session (enabled in discord or while runnning the wrokflow from github)
✅ Fix: Make sure you enabled workflows in the Actions tab (Step 2 in either setup)
✅ Fix: Check the workflow logs for error messages:
- Go to Actions tab
- Click on your failed workflow run
- Click "Run Selenium Start/Stop Script" to expand the logs
- Look for red error messages
If you created your Seedloaf account through Discord, the automation won't work even if you added a email and password later.
✅ Fix:
- Go to your Seedloaf account settings
- Add an email address if not yet
- Unlink your Discord account
- Change your password in the Security tab
- Now you can re-link Discord if you want
This is required because Seedloaf treats Discord-only accounts differently from email accounts.
✅ Fix: Check your repository secrets:
- Go to Settings → Secrets and variables → Actions
- Delete and recreate the
USERNAMEandPASSWORDsecrets - Make sure there are no extra spaces when pasting
✅ Fix: The session cache might be stale.
- Run the workflow again or delete the session cache in Actions tab
If nothing else works, try using the older version:
- Go to
.github/workflows/ - Rename
selenium.ymltoselenium_new.yml - Rename
selenium_working.ymltoselenium.yml - Commit the changes
- Still stuck? Open an Issue in this repository
- my discord
dibope5834_95850
- It installs Chrome browser and Python
- The Selenium script opens Chrome, goes to Seedloaf, logs in with your credentials, optionally saves login session if you enable in discord or github
- It clicks the Start/Stop button and closes











