mirror of
https://github.com/Nezumi-2711/revanced-apk-build.git
synced 2026-09-23 04:19:49 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
be1c20bb87 | ||
|
|
88a00ca413 | ||
|
|
788b36f083 | ||
|
|
ae43197aa0 | ||
|
|
c2fe93675e |
+15
-12
@@ -174,23 +174,26 @@ jobs:
|
|||||||
${BODY}
|
${BODY}
|
||||||
|
|
||||||
**Download Links:**
|
**Download Links:**
|
||||||
|
"
|
||||||
|
|
||||||
|
MODULES_MSG="
|
||||||
**Modules:**
|
**Modules:**
|
||||||
${MODULES}
|
${MODULES}
|
||||||
|
"
|
||||||
|
|
||||||
|
APKS_MSG="
|
||||||
**APKs:**
|
**APKs:**
|
||||||
${APKS}
|
${APKS}
|
||||||
"
|
"
|
||||||
|
|
||||||
# Function to send messages in chunks
|
curl -X POST -H "Content-Type: application/json" \
|
||||||
send_discord_message() {
|
-d "$(jq -n --arg content "$MSG" '{content: $content}')" \
|
||||||
local message="$1"
|
"$DISCORD_WEBHOOK_URL"
|
||||||
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"
|
curl -X POST -H "Content-Type: application/json" \
|
||||||
|
-d "$(jq -n --arg content "$MODULES_MSG" '{content: $content}')" \
|
||||||
|
"$DISCORD_WEBHOOK_URL"
|
||||||
|
|
||||||
|
curl -X POST -H "Content-Type: application/json" \
|
||||||
|
-d "$(jq -n --arg content "$APKS_MSG" '{content: $content}')" \
|
||||||
|
"$DISCORD_WEBHOOK_URL"
|
||||||
|
|||||||
Reference in New Issue
Block a user