blessing-skin-server/scripts/bot.ps1
2019-12-07 15:59:00 +08:00

7 lines
305 B
PowerShell

$botRelease = (Invoke-WebRequest 'https://api.github.com/repos/bs-community/telegram-bot/releases/latest').Content | ConvertFrom-Json
$botBinUrl = ((Invoke-WebRequest $botRelease.assets_url).Content | ConvertFrom-Json).browser_download_url
bash -c "curl -fSL $botBinUrl -o bot"
chmod +x ./bot
./bot diff