feat: clear alumb

This commit is contained in:
hashbro
2026-08-30 04:59:57 +08:00
parent dc543fe728
commit 702d05f5fe
6 changed files with 72 additions and 187 deletions
-21
View File
@@ -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 === '') {