Mass leave discord server
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# DC mass leave server | |
# Created by github.com/vsec7 | |
# Usage : ./script listtoken | |
leave(){ | |
g=$(curl -s -X DELETE "https://discordapp.com/api/v6/users/@me/guilds/$1" \ | |
-H "Authorization: $2") | |
if [ -z $g ]; then | |
echo "[+] $2 : Success leave" | |
else | |
echo "[-] $2 : Failed leave" | |
fi | |
} | |
read -p "[?] List Token : " list | |
read -p "[?] Guild ID : " gid | |
read -p "[?] Total : " total | |
n=1 | |
while read token; do | |
if [[ $n -le total ]]; then | |
leave $gid $token | |
sleep 30 # delay 30 second | |
fi | |
n=$[$n+1] | |
done < $list |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment