Skip to content

Instantly share code, notes, and snippets.

@jadc
Last active March 21, 2021 01:17
Show Gist options
  • Save jadc/d6fbe7a26d57c2ebfd20eb984d76a483 to your computer and use it in GitHub Desktop.
Save jadc/d6fbe7a26d57c2ebfd20eb984d76a483 to your computer and use it in GitHub Desktop.
Discord Sync Talk (send same message on multiple accounts at once)
declare -a TOKENS=(
# insert tokens here, one per line
)
read -p "Channel ID: " CHANNEL
say () {
curl -X POST -H "Authorization: $2" -H "User-Agent: thiscanbeanything" -H "Content-Type: application/json" -d "{\"content\": \"$1\"}" https://discordapp.com/api/v6/channels/$CHANNEL/messages --no-progress-meter > /dev/null
}
sayEach () {
for t in "${TOKENS[@]}"
do
say "$1" "$t" &
done
}
while true
do
echo -n "Botnet: " && read MSG && sayEach "$MSG"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment