Selenium script to start seedloaf server
(There's a Instructions.md(not for bot) if u wish to add ur friends to use this)
- Setup
- Prevent friends from changing code(Make sure u do this too!) (Not needed for bot)
- Common problems
1)Fork this(top right) and create 2 repository secrets named USERNAME, PASSWORD.(your email and seedloaf password)
Go to Actions tab and enable workflows
To add repository secret:(Settings > Secrets and variables > Actions > repository secrets > New repository secret)
( No one, even u can't see them after u set so it's really a secret)
2)Click Run selenium script(yeah not the one in pic) then Run workflow. Refresh page to view the run.
3)(Only if you are using this for the bot else skip to Step-4)
Create a finegrain token
Go to settings in profile > developer settings > personal access token > fine grain > set the permissions as given below(there are images below too)
Permissions for Personal access token
Expiration : no expiration
Repository access : all repositories (or the repo u want)
Permissions : Actions (read and write); Workflow(read and write)
Note: DO NOT GIVE ANY PERMISSIONS OTHER THAN SPECIFIED. ESPECIALLY contents permission lets anyone edit your repo so check if this is your finally permissions
4)(Not needed for the bot)
Add your friends as collaborators
1)Go to settings>branchs>branch protection rule>Require status check>select "fail-job" or type if not appearred.
2)Set ur friends with read only access
-
check if u have enabled workflows in Action tab
-
View the run in actions tab. open Run selenium script section to view any problems like password incorrect or anything.
-
try using older selenium file named selenium_working.yml. this is the last option
-
If you have created seedloaf acc though discord and not by email, even if u added password after that it wont work. Do the following in Seedloaf:
-
add an email
-
unlink discord
-
change password in security tab in seedloaf profile
-
u can add discord accs now
-