mirror of
https://github.com/Nezumi-2711/revanced-apk-build.git
synced 2026-09-22 13:38:52 +00:00
update config
This commit is contained in:
@@ -181,6 +181,16 @@ jobs:
|
|||||||
${APKS}
|
${APKS}
|
||||||
"
|
"
|
||||||
|
|
||||||
curl -X POST -H "Content-Type: application/json" \
|
# Function to send messages in chunks
|
||||||
-d "$(jq -n --arg content "$MSG" '{content: $content}')" \
|
send_discord_message() {
|
||||||
"$DISCORD_WEBHOOK_URL"
|
local message="$1"
|
||||||
|
while [ ${#message} -gt 0 ]; do
|
||||||
|
local chunk="${message:0:2000}" # Take the first 2000 characters
|
||||||
|
curl -X POST -H "Content-Type: application/json" \
|
||||||
|
-d "$(jq -n --arg content "$chunk" '{content: $content}')" \
|
||||||
|
"$DISCORD_WEBHOOK_URL"
|
||||||
|
message="${message:2000}" # Remove the sent chunk from the message
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
send_discord_message "$MSG"
|
||||||
|
|||||||
Reference in New Issue
Block a user