nos/reply_post

14 lines
275 B
Plaintext
Raw Normal View History

2023-09-04 19:44:27 +00:00
#!/bin/bash
2023-09-04 19:59:57 +00:00
pid="${1}"; # post id passed from run
url="${2}"; # new url passed from run
2023-09-04 19:44:27 +00:00
RDR_AUTH=$(cat ./conf/auth.token);
curl "https://rdrama.net/comment" \
-X 'POST' \
-H "$RDR_AUTH" \
-d 'parent_fullname=p_'"$pid" \
-d 'submission='"$pid" \
-d 'body='"$url" \
--SILENT