From 0f506d8dac35768ce1172095ac4b0436a1370ed9 Mon Sep 17 00:00:00 2001 From: Leejinuk123 <50895677+Leejinuk123@users.noreply.github.com> Date: Sat, 17 Jun 2023 01:40:14 +0900 Subject: [PATCH 1/2] Update and rename lostarkBotEdit.js to lostarkBotEdit2.js --- lostarkBotEdit.js => lostarkBotEdit2.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) rename lostarkBotEdit.js => lostarkBotEdit2.js (87%) diff --git a/lostarkBotEdit.js b/lostarkBotEdit2.js similarity index 87% rename from lostarkBotEdit.js rename to lostarkBotEdit2.js index a922f41..fcc725e 100644 --- a/lostarkBotEdit.js +++ b/lostarkBotEdit2.js @@ -36,7 +36,14 @@ function response(room, msg, sender, isGroupChat, replier, imageDB, packageName) charImg = cloudinary+"/c_thumb,w_800,h_400,c_fill/c_thumb,w_400,h_400,l_"+ charImg +"/fl_layer_apply,g_north_east,x_0,y_0/l_text:Arial_45_bold:"+ charName[1] +",g_north_west,x_100,y_80,co_rgb:EAEAEA/sasasa_csje7s"; replier.reply(charImg); //charImg = org.jsoup.Jsoup.connect("http://leejinouk123.dothome.co.kr/index.html/?charName="+charName[1]+"&imageLink="+charImg).get(); - replier.reply("http://leejinouk123.dothome.co.kr/index.html/?charName="+charName[1]+"&imageLink="+json.public_id); + const post = org.jsoup.Jsoup.connect("http://leejinouk123.dothome.co.kr/index.html"); + const postInfo = + post.data('imageLink',charImg) + .data('charName',charName[1]) + .ignoreContentType(true) + .ignoreHttpErrors(true) + .post(); + replier.reply(postInfo); //const sendHtml = org.jsoup.Jsoup.connect(""); //json = JSON.parse(dataWrap.text()); //html 형식의 파일을 json으로 파싱 From 9f467e6bf6c9594be7d4da37c98c329f8e6b410e Mon Sep 17 00:00:00 2001 From: Leejinuk123 <50895677+Leejinuk123@users.noreply.github.com> Date: Sat, 17 Jun 2023 01:47:01 +0900 Subject: [PATCH 2/2] Update lostarkBotEdit2.js --- lostarkBotEdit2.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lostarkBotEdit2.js b/lostarkBotEdit2.js index fcc725e..f9cd40b 100644 --- a/lostarkBotEdit2.js +++ b/lostarkBotEdit2.js @@ -68,4 +68,4 @@ function onResume(activity) {} function onPause(activity) {} -function onStop(activity) {} +function onStop(activity) {} \ No newline at end of file