blob: 73e4ed9baaafd9da53cd2d29ab2efcfd0713aee9 (
plain) (
blame)
1
2
3
4
5
|
#!/bin/sh
c=null
[ $2x = x ] || c=$2
r=`curl -X POST -H "Content-Type: application/json" https://discord.com/api/v9/auth/login --data-raw "{\"login\":\"$1\",\"password\":\"$DC_P\",\"undelete\":\"false\",\"captcha_key\":$c,\"login_source\":null,\"gift_code_sku_id\":null}"`
jq -r .token <<<$r
|