mirror of
https://github.com/YunoHost/magnetocassette.git
synced 2024-09-03 20:06:22 +02:00
Do nothing if reaction is not handled
This commit is contained in:
parent
494f142cc1
commit
f752811824
1 changed files with 1 additions and 1 deletions
|
@ -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 <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,
|
||||
"noerr": 0,
|
||||
"initialize": "",
|
||||
|
|
Loading…
Reference in a new issue