From f7528118247e2c704fa42399471e2f1d1e293d7a Mon Sep 17 00:00:00 2001 From: tituspijean Date: Fri, 18 Aug 2023 12:26:14 +0200 Subject: [PATCH] Do nothing if reaction is not handled --- flow.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flow.json b/flow.json index 9f55984..55c02ae 100644 --- a/flow.json +++ b/flow.json @@ -257,7 +257,7 @@ "type": "function", "z": "38336e80fa6d36cf", "name": "Filter reaction and preparate answer", - "func": "let greeting = \"Hi! To help us volunteers help you, read about how to ask for help.\" ;\nlet closing = \"Thank you for you patience, and thank you for using YunoHost!\";\nlet message;\n\nswitch(msg.payload){\n case \"🪵\":\n message = \"Notably, if you are getting an error, share its full log by pasting here the link to the page created by the YunoPaste buttons.\";\n break;\n// The ? emoji is actually 2-character-long. Make sure to copy it from the debug log.\n case \"❓️\":\n message = \"Notably, contextualize your problem and explain it plainly.\";\n break;\n case \"🦤\":\n message = \"Notably, directly explain your problem or ask your question.\";\n break;\n case \"🧱\":\n message = \"Notably, explain your problem and avoid sentences like \\\"it does not work\\\". Share any displayed error, use YunoPaste buttons, describe what is not working.\";\n break;\n}\n\nmsg.payload = greeting+\"
\"+message+\"
\"+closing;\n\nreturn msg;", + "func": "let greeting = \"Hi! To help us volunteers help you, read about how to ask for help.\" ;\nlet closing = \"Thank you for you patience, and thank you for using YunoHost!\";\nlet message;\n\nswitch(msg.payload){\n case \"🪵\":\n message = \"Notably, if you are getting an error, share its full log by pasting here the link to the page created by the YunoPaste buttons.\";\n break;\n// The ? emoji is actually 2-character-long. Make sure to copy it from the debug log.\n case \"❓️\":\n message = \"Notably, contextualize your problem and explain it plainly.\";\n break;\n case \"🦤\":\n message = \"Notably, directly explain your problem or ask your question.\";\n break;\n case \"🧱\":\n message = \"Notably, explain your problem and avoid sentences like \\\"it does not work\\\". Share any displayed error, use YunoPaste buttons, describe what is not working.\";\n break;\n default:\n return null;\n}\n\nmsg.payload = greeting+\"
\"+message+\"
\"+closing;\n\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "",