TeamSpeak 5 Beta

Jackbox

Active Member
Jan 2, 2016
197
96
74
It's nothing special, but here it is.


Anyone here use Linux? Windows sucks unless you go through PowerShell hell (somewhat steep learning curve) which maybe I will one day.

Just get into your Debian or Ubuntu system.

Keep your system updated!
apt update && apt upgrade -y

Make a new project folder.
MKWTR=~/`date +%s`-badge && mkdir $MKWTR && cd $MKWTR

Create our files to be used for checking if a new badge is out.
touch badgeCheck.sh notice.sh && chmod +x badgeCheck.sh notice.sh

Now just use nano to paste the file contents into the appropriate files.
nano badgeCheck.sh
Bash:
[ ! -f startHash.txt ] && curl -I https://badges-content.teamspeak.com/list | grep "last-modified" | base64 > startHash.txt

freshHash=$(curl -I https://badges-content.teamspeak.com/list | grep "last-modified" | base64)

theDiff=$(diff startHash.txt <(echo "$freshHash"))

if [ "$theDiff" != "" ]
then
    ./notice.sh && curl -I https://badges-content.teamspeak.com/list | grep "last-modified" | base64 > startHash.txt
fi

The above can be pasted in with a right click into PuTTY, now Ctrl+X, then press Y, then press Enter.

nano notice.sh
Bash:
curl --request POST \
  --url https://api.sendgrid.com/v3/mail/send \
  --header "Authorization: Bearer $SENDGRID_API_KEY" \
  --header 'Content-Type: application/json' \
  --data '{"personalizations": [{"to": [{"email": "asphyxia@r4p3.net"}]}],"from": {"email": "teamspeak@alert.r4p3.net"},"subject": "New TeamSpeak Badge","content": [{"type": "text/plain", "value": "A new TeamSpeak badge may have been released!"}]}'

You will need a free SendGrid API key and to replace the asphyxia@r4p3.net email with yours.

... just schedule this to run every 5 minutes or whatever. :cool:

Anyone have questions - just pm me.
 
U

User_2092

Last Pic is out so the code is "AHQH4TL7S7" but wait check the last pic on the chat "O BTW, that Beta key you wanted is around here somewhere..."
 

Ondra3211

Contributor
May 5, 2018
65
37
111
We should get an email about ts5. And we can redeem the code to unlock ts5 beta program.
 
Top