added server name for discord.
This commit is contained in:
+3
-1
@@ -1,4 +1,6 @@
|
||||
#!/bin/bash
|
||||
!/bin/bash
|
||||
|
||||
DISCORD_SERVER_NAME="<YOUR SERVER>"
|
||||
|
||||
DISCORD_GENERAL_HOOK="<WEBHOOK_URL_HERE>"
|
||||
|
||||
|
||||
+1
-1
@@ -18,5 +18,5 @@ case $HOOK_ARG in
|
||||
;;
|
||||
esac
|
||||
|
||||
curl -s -H "Content-Type: application/json" -X POST -d "{\"content\": \"${MESSAGE}\"}" $HOOK_URL | jq -r '.id'
|
||||
curl -s -H "Content-Type: application/json" -X POST -d "{\"username\": \"${DISCORD_SERVER_NAME}\", \"content\": \"${MESSAGE}\"}" $HOOK_URL | jq -r '.id'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user