Removes faker as a dependency

This commit is contained in:
2023-04-24 09:51:28 -04:00
parent b6dbff51c6
commit 2a30e2f781
2 changed files with 2 additions and 4 deletions

View File

@@ -217,9 +217,8 @@ if ($USERNAME) {
// Checks if bots still have to be added
$bots = dbRequest2("SELECT * FROM golfGamePlayers WHERE gameID='$id' and bot=1");
$bots = count($bots);
$faker = Faker\Factory::create();
for ($i = $bots; $i < $game["bots"]; $i++) {
$name = $faker->name;
$name = "Bot " . rand(0, 9);
while (dbRequest2("SELECT * FROM golfGamePlayers WHERE gameID='$id' and user='$name'")) {
// Adds a random number to the name
$name = $name . rand(0, 9);

View File

@@ -1,6 +1,5 @@
{
"require": {
"phpmailer/phpmailer": "6.6.*",
"fzaninotto/faker": "1.9.2"
"phpmailer/phpmailer": "6.6.*"
}
}