wip
This commit is contained in:
1 parent
7abcc5c56c
commit
90bba45c0a
26 files changed
+3448
-32353
No files matched your search
@@ -6,14 +6,18 @@ use App\Console\Commands\Grapper\TxSwitch;
|
||||
use App\Models\Supervisor;
|
||||
use App\Utilities\Notice;
|
||||
use App\Utilities\Supervisorctl;
|
||||
use DB;
|
||||
use Illuminate\Console\Command;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
|
||||
class NuhBash extends Command
|
||||
{
|
||||
public static $options = [];
|
||||
|
||||
protected $signature = 'nuh {process=help} {eventid=0} {--d} {--f} {--a} {--w} {--p} {--s} {--r} {--b}';
|
||||
public static $AUTHTOKEN;
|
||||
|
||||
public static $BETSAPI_TOKEN = '36152-aeTRNnZxSPUwGe';
|
||||
|
||||
protected $signature = 'nuh {process=help} {eventid=0} {--d} {--f} {--a} {--w} {--p} {--s} {--r} {--b} {--q}';
|
||||
|
||||
protected $description = 'NuhBash';
|
||||
|
||||
@@ -23,7 +27,7 @@ class NuhBash extends Command
|
||||
self::$options['supervisor_id'] = $this->argument('process');
|
||||
self::$options['event_id'] = $this->argument('eventid');
|
||||
|
||||
$queries = self::$options['m'] ?? 0;
|
||||
$queries = self::$options['q'] ?? 0;
|
||||
|
||||
if ($this->argument('process') == 'help') {
|
||||
$txt = PHP_EOL;
|
||||
@@ -35,11 +39,11 @@ class NuhBash extends Command
|
||||
$txt .= 'List of options'.PHP_EOL;
|
||||
$txt .= '----------------------------------------------'.PHP_EOL;
|
||||
$txt .= '--d debug'.PHP_EOL;
|
||||
$txt .= '--m debug queries'.PHP_EOL;
|
||||
$txt .= '--q print queries'.PHP_EOL;
|
||||
$txt .= '--f force update market'.PHP_EOL;
|
||||
$txt .= '--a reload all'.PHP_EOL;
|
||||
$txt .= '--w reload one week'.PHP_EOL;
|
||||
$txt .= '--p print odds'.PHP_EOL;
|
||||
$txt .= '--p print grapped file'.PHP_EOL;
|
||||
$txt .= '--s store data to file '.PHP_EOL;
|
||||
$txt .= '--r read data from file '.PHP_EOL;
|
||||
$txt .= '--b break loop after one '.PHP_EOL;
|
||||
@@ -73,7 +77,7 @@ class NuhBash extends Command
|
||||
// betsapi
|
||||
break;
|
||||
default:
|
||||
Note::notice('Provider not defined', 'r', 1);
|
||||
Notice::note('Provider not defined', 'r', 1);
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user