feat: Random walking around in spoofed location (#805)

Co-authored-by: w451 <cheb>
Co-authored-by: auth <64337177+authorisation@users.noreply.github.com>
This commit is contained in:
w451
2024-04-27 08:00:20 -04:00
committed by GitHub
parent 178f2f4ac6
commit c950db4dfe
5 changed files with 80 additions and 6 deletions

View File

@@ -636,6 +636,10 @@
"name": "Coordinates",
"description": "Set the coordinates of the spoofed location"
},
"walk_radius": {
"name": "Walk Radius",
"description": "Randomly walk around within this radius (ft)"
},
"always_update_location": {
"name": "Always Update Location",
"description": "Force Snapchat to update location even if no GPS data is received"

View File

@@ -21,6 +21,7 @@ class Global : ConfigContainer() {
inner class BetterLocation : ConfigContainer(hasGlobalState = true) {
val spoofLocation = boolean("spoof_location") { requireRestart() }
val coordinates = mapCoordinates("coordinates", 0.0 to 0.0) // lat, long
val walkRadius = string("walk_radius") { requireRestart(); inputCheck = { it.toDoubleOrNull()?.isFinite() == true && it.toDouble() >= 0.0 } }
val alwaysUpdateLocation = boolean("always_update_location") { requireRestart() }
val suspendLocationUpdates = boolean("suspend_location_updates") { requireRestart() }
val spoofBatteryLevel = string("spoof_battery_level") { requireRestart(); inputCheck = { it.isEmpty() || it.toIntOrNull() in 0..100 } }