wip matches

This commit is contained in:
salam committed 2025-08-27 12:51:03 +02:00
1 parent adb15e701b
commit 7116d3c576
33 files changed
+379 -176

No files matched your search

+26 -16
View File
@@ -2,7 +2,7 @@
namespace App\Console\Commands;
use App\Console\Commands\Grapper\TxOdds\TxOdds;
use App\Console\Commands\Grapper\TxSwitch;
use App\Models\Supervisor;
use App\Utilities\Notice;
use App\Utilities\Supervisorctl;
@@ -26,7 +26,7 @@ class NuhBash extends Command
public static $auth = '';
protected $signature = 'nuh {process=help} {eventid=0} {--d} {--f} {--a} {--p} {--w}';
protected $signature = 'nuh {process=help} {eventid=0} {--d} {--f} {--a} {--p} {--w} {--s} {--l}';
protected $description = 'NuhBash';
@@ -38,11 +38,12 @@ class NuhBash extends Command
self::$options['event_id'] = $this->argument('eventid');
if ($this->argument('process') == 'help') {
$txt = 'List of parameters'.PHP_EOL;
$txt = PHP_EOL;
$txt .= 'List of parameters'.PHP_EOL;
$txt .= '----------------------------------------------'.PHP_EOL;
$txt .= 'process [id] (required)'.PHP_EOL;
$txt .= 'eventid [id] (optional)'.PHP_EOL;
$txt .= '----------------------------------------------'.PHP_EOL;
$txt .= '----------------------------------------------'.PHP_EOL.PHP_EOL;
$txt .= 'List of options'.PHP_EOL;
$txt .= '----------------------------------------------'.PHP_EOL;
$txt .= '--d debug'.PHP_EOL;
@@ -50,7 +51,9 @@ class NuhBash extends Command
$txt .= '--a reload all'.PHP_EOL;
$txt .= '--w reload one week'.PHP_EOL;
$txt .= '--p print odds'.PHP_EOL;
$txt .= '----------------------------------------------'.PHP_EOL;
$txt .= '--s store grapped file '.PHP_EOL;
$txt .= '--l load latest grapped file '.PHP_EOL;
$txt .= '----------------------------------------------'.PHP_EOL.PHP_EOL;
$txt .= 'List of supervisors'.PHP_EOL;
$txt .= '----------------------------------------------'.PHP_EOL;
$tmp = Supervisor::all();
@@ -62,18 +65,25 @@ class NuhBash extends Command
Supervisorctl::start(self::$options);
Helper::get_auth_string();
switch (self::$options['type']) {
case 'Grapper':
switch (self::$options['provider_id']) {
case 1:
TxSwitch::switch();
case 2:
// betsapi
break;
case 3:
// direct
break;
default:
Note::notice('Provider not defined', 'r', 1);
break;
}
break;
switch (self::$options['provider_id']) {
case 1:
case 2:
TxOdds::switch();
break;
case 3:
// betsapi
break;
default:
Note::notice('Provider not defined', 'r', 1);
case 'Comparatore':
// code...
break;
}