feat: clear alumb
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
<?php
|
||||
|
||||
use App\Services\ChannelProjectService;
|
||||
use App\Services\Tokenview\TokenviewClient;
|
||||
use Illuminate\Foundation\Inspiring;
|
||||
use Illuminate\Support\Facades\Artisan;
|
||||
use Illuminate\Support\Facades\Http;
|
||||
@@ -16,26 +15,6 @@ Artisan::command('inspire', function () {
|
||||
$this->comment(Inspiring::quote());
|
||||
})->purpose('Display an inspiring quote');
|
||||
|
||||
Artisan::command('tokenview:set-webhook {url?}', function (?string $url = null) {
|
||||
/** @var TokenviewClient $client */
|
||||
$client = app(TokenviewClient::class);
|
||||
if (! $client->enabled()) {
|
||||
$this->error('TOKENVIEW_API_KEY is empty');
|
||||
|
||||
return 1;
|
||||
}
|
||||
$url = $url ?: rtrim((string) config('app.url'), '/').'/hooks/tokenview';
|
||||
$this->info('Setting webhook URL: '.$url);
|
||||
if ($client->setWebhookUrl($url)) {
|
||||
$this->info('OK');
|
||||
|
||||
return 0;
|
||||
}
|
||||
$this->error('Failed — check Tokenview API response / credentials');
|
||||
|
||||
return 1;
|
||||
})->purpose('Register Tokenview address-tracking webhook URL');
|
||||
|
||||
Artisan::command('telegram:set-webhook {url?}', function (?string $url = null) {
|
||||
$token = (string) config('nutgram.token', '');
|
||||
if ($token === '') {
|
||||
|
||||
Reference in New Issue
Block a user