From cbcf78e4a1cc01f088ed5d98322adffe49093ad6 Mon Sep 17 00:00:00 2001 From: Yinnii Date: Fri, 8 Dec 2023 12:35:39 +0100 Subject: [PATCH] update channel --- .../java/i5/las2peer/services/openAIService/OpenAIService.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openai-service/src/main/java/i5/las2peer/services/openAIService/OpenAIService.java b/openai-service/src/main/java/i5/las2peer/services/openAIService/OpenAIService.java index aaa9190..5089d7a 100644 --- a/openai-service/src/main/java/i5/las2peer/services/openAIService/OpenAIService.java +++ b/openai-service/src/main/java/i5/las2peer/services/openAIService/OpenAIService.java @@ -695,7 +695,7 @@ public Response biwibot(@FormDataParam("msg") String msg, @FormDataParam("organi return Response.ok().entity(response.toString()).build(); } - public JSONObject biwibot(@FormDataParam("msg") String msg, @FormDataParam("channel") String channel, @FormDataParam("sbfmUrl") String sbfmUrl){ + public JSONObject biwibot(@FormDataParam("msg") String msg, @FormDataParam("channel") String orgaChannel, @FormDataParam("sbfmUrl") String sbfmUrl){ System.out.println("Msg:" + msg); System.out.println("Channel:" + channel); Boolean contextOn = false; @@ -703,6 +703,7 @@ public JSONObject biwibot(@FormDataParam("msg") String msg, @FormDataParam("chan JSONObject chatResponse = new JSONObject(); JSONObject newEvent = new JSONObject(); JSONObject error = new JSONObject(); + String channel = orgaChannel.split("-")[1]; if(!msg.equals("!exit")){ try { new Thread(new Runnable() {