Do nothing if reaction is not handled

This commit is contained in:
tituspijean 2023-08-18 12:26:14 +02:00 committed by GitHub
parent 494f142cc1
commit f752811824
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -257,7 +257,7 @@
"type": "function", "type": "function",
"z": "38336e80fa6d36cf", "z": "38336e80fa6d36cf",
"name": "Filter reaction and preparate answer", "name": "Filter reaction and preparate answer",
"func": "let greeting = \"Hi! To help us volunteers help you, read about <a href=\\\"https://yunohost.org/en/community/help#how-to-ask-for-help\\\">how to ask for help</a>.\" ;\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 <em>full</em> 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+\"<br />\"+message+\"<br />\"+closing;\n\nreturn msg;", "func": "let greeting = \"Hi! To help us volunteers help you, read about <a href=\\\"https://yunohost.org/en/community/help#how-to-ask-for-help\\\">how to ask for help</a>.\" ;\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 <em>full</em> 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+\"<br />\"+message+\"<br />\"+closing;\n\nreturn msg;",
"outputs": 1, "outputs": 1,
"noerr": 0, "noerr": 0,
"initialize": "", "initialize": "",