aboutsummaryrefslogtreecommitdiff
path: root/rest.sh
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2024-05-12 16:07:15 +0200
committerLinnea Gräf <nea@nea.moe>2024-05-12 16:07:15 +0200
commit1083db296869fdf6cbb9b4ac1739b62f21428920 (patch)
treec65b2597734aa3cf963f546f0ec90c890c4203bb /rest.sh
parent65cbc9069e15f7f77a0497395a7796906b8ade9a (diff)
downloadatrocity-1083db296869fdf6cbb9b4ac1739b62f21428920.tar.gz
atrocity-1083db296869fdf6cbb9b4ac1739b62f21428920.tar.bz2
atrocity-1083db296869fdf6cbb9b4ac1739b62f21428920.zip
More WIP
Diffstat (limited to 'rest.sh')
-rw-r--r--rest.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/rest.sh b/rest.sh
new file mode 100644
index 0000000..e4824d8
--- /dev/null
+++ b/rest.sh
@@ -0,0 +1,3 @@
+atrocity_rest() {
+ curl -X "$1" "https://discord.com/api/v10/$2" -H "authorization: Bot $ATROCITY_TOKEN" -H "content-type: application/json" --data "$3" 2>/dev/null
+}