discord: add update script

This API endpoint is used by the app, and so should be stable.
The app also passes the version, but leaving it out seemingly doesn't cause problems.
ex request: https://discordapp.com/api/updates/stable?platform=linux&version=0.0.10
This commit is contained in:
Nopey Nope 2020-08-19 20:28:48 -08:00 committed by Piotr
parent a1b5b8a4b5
commit fbd25d29cb
1 changed files with 3 additions and 0 deletions

3
srcpkgs/discord/update Normal file
View File

@ -0,0 +1,3 @@
# sample response: {"name": "0.0.11", "pub_date": "2020-08-06T16:59:21"}
site="https://discordapp.com/api/updates/stable?platform=linux"
pattern="\"name\":\s*\"\K[\d.]+(?=\")"