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": "[email protected]"}]}],"from": {"email": "[email protected]"},"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 [email protected] 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..."
 

BIOS

Knowledge Seeker
VIP
Oct 10, 2015
447
848
208
I don't think the badge is active you can check here https://badges-content.teamspeak.com/list

This whole puzzle shit was so badly organized. It's just sad

we have last days discusion about teamspeak system works on weekend in ts forum.... and he not works on weekends... so i think its not an badge

---- Automatically Merged Double Post ----

attachment.php
 
Last edited:
Top