This repository has been archived by the owner on Oct 22, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed crash issue that the bot was having in the latest version. ✅ Removed socket connections that wasn't being used. Cleaned up the old socketConnect stuff. Added more config options to the UI. - Shared Secrets and Identity Secret - Basic account information like username ect. When you change the config and open the window up again you will see the changes to the config files. The window does now also close when you hit the "save" button
- Loading branch information
1 parent
c87651c
commit 8d7c77a
Showing
12 changed files
with
122 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<title>Accounts basic settings</title> | ||
<!-- Required meta tags --> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | ||
<link rel="stylesheet" type="text/css" href="../style.css"> | ||
<!-- Bootstrap CSS --> | ||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous"> | ||
</head> | ||
<body> | ||
<div class="form-group center margintop centerdiv"> | ||
<label for="username" id="label">Username</label> | ||
<input type="text" id ="username" class="form-control centerdiv center" style="width: 75%;" placeholder=""> | ||
<label for="password" id="label2">Password</label> | ||
<input type="password" id ="password" class="form-control centerdiv center" style="width: 75%;" placeholder=""> | ||
<button type="button" class="btn btn-outline-success" id="btn">Save</button> | ||
</div> | ||
<p class="color-danger font-weight-bold" style="margin-left: 15%; margin-right: 15%; color:red; text-align: center">We strongly recommend using a seperate account for the bot.</p> | ||
<!-- Optional JavaScript --> | ||
<!-- jQuery first, then Popper.js, then Bootstrap JS --> | ||
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script> | ||
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script> | ||
<script> | ||
require('./scripts/configAccount.js'); | ||
|
||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
const configjs = require('../../../modules/config.js'); | ||
const config = require('../../../config.json'); | ||
const username = document.getElementById("username"); | ||
const password = document.getElementById("password"); | ||
username.value = config.username; | ||
password.value = config.password; | ||
if (password.value === 'Steam password') { | ||
password.type = "text" | ||
} | ||
password.addEventListener("click", () => { | ||
password.type = "password"; | ||
}); | ||
const btn = document.getElementById('btn'); | ||
|
||
btn.addEventListener('click', () => { | ||
if (username.value !== '' && password.value !== '') { | ||
configjs.confighandler('username', username.value); | ||
wait = () => { | ||
configjs.confighandler('password', password.value); | ||
window.close(); | ||
|
||
} | ||
setTimeout(wait, 1000); | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
const configjs = require('../../../modules/config'); | ||
var id = document.getElementById('id'); | ||
const config = require('../../../config.json'); | ||
const id = document.getElementById('id'); | ||
id.value = config.ownerID; | ||
let btn = document.getElementById('btn'); | ||
let label = document.getElementById('label'); | ||
|
||
btn.addEventListener('click', () => { | ||
configjs.confighandler('ownerID', id.value); | ||
label.innerHTML = 'Updated to ownerid: ' + id.value; | ||
window.close(); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
const configjs = require('../../../modules/config'); | ||
const config = require('../../../config.json'); | ||
const electron = require('electron'); | ||
const shell = electron.shell; | ||
const iSecret = document.getElementById('iSecret'); | ||
const sSecret = document.getElementById('sSecret'); | ||
iSecret.value = config.identitySecret; | ||
sSecret.value = config.sharedSecret; | ||
const label = document.getElementById('label'); | ||
let btn = document.getElementById('btn'); | ||
let externalLink = document.getElementById('link'); | ||
link.addEventListener('click', () => { | ||
shell.openExternal('https://github.com/SteamTimeIdler/stidler/wiki/Getting-your-%27shared_secret%27-code-for-use-with-Auto-Restarter-on-Mobile-Authentication#getting-shared-secret-from-steam-desktop-authenticator-windows'); | ||
}); | ||
btn.addEventListener('click', () => { | ||
if (iSecret.value !== '') { | ||
configjs.confighandler('identitySecret', iSecret.value); | ||
} | ||
if(sSecret.value !== ''){ | ||
configjs.confighandler('sharedSecret', sSecret.value); | ||
} | ||
window.close(); | ||
label.innerHTML = 'Updated values'; | ||
|
||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
const configjs = require('../../../modules/config'); | ||
const config = require('../../../config.json'); | ||
const trashlimit = document.getElementById('trashlimit'); | ||
trashlimit.value = config.trashlimit; | ||
const label = document.getElementById('label'); | ||
let btn = document.getElementById('btn'); | ||
|
||
btn.addEventListener('click', () => { | ||
configjs.confighandler('trashlimit', trashlimit.value); | ||
label.innerHTML = 'Updated to game: ' + trashlimit.value; | ||
|
||
window.close(); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters