@open-wa/wa-automate 4.23.0 → 4.23.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +7 -2
- package/dist/cli/server.js +1 -0
- package/package.json +1 -1
package/LICENSE.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
### Copyright (c) 2020 Mohammed Shah
|
2
2
|
|
3
|
-
# Hippocratic + Do Not Harm (H-DNH) Version 1.
|
3
|
+
# Hippocratic + Do Not Harm (H-DNH) Version 1.1
|
4
4
|
|
5
5
|
## Preamble
|
6
6
|
|
@@ -34,6 +34,11 @@ Licensor hereby grants permission by this license ("License"), free of charge,
|
|
34
34
|
* warfare
|
35
35
|
* weapons manufacturing
|
36
36
|
* war crimes
|
37
|
+
* settler colonialism
|
38
|
+
* apartheid
|
39
|
+
* vaccine misinformation
|
40
|
+
* climate misinformation
|
41
|
+
* child endangerment
|
37
42
|
* violence (except when required to protect public safety)
|
38
43
|
* burning of forests
|
39
44
|
* deforestation
|
@@ -59,4 +64,4 @@ Licensor hereby grants permission by this license ("License"), free of charge,
|
|
59
64
|
|
60
65
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
61
66
|
|
62
|
-
This license is an extension of the Hippocratic License - an Ethical Source license (https://ethicalsource.dev) and the Do Not Harm License - (https://github.com/raisely/NoHarm)
|
67
|
+
This license is an extension of the Hippocratic License - an Ethical Source license (https://ethicalsource.dev) and the Do Not Harm License - (https://github.com/raisely/NoHarm)
|
package/dist/cli/server.js
CHANGED
@@ -245,6 +245,7 @@ const setupBotPressHandler = (cliConfig, client) => {
|
|
245
245
|
const { responses } = data;
|
246
246
|
return yield Promise.all(responses.filter(({ type }) => type != "typing").map((response) => {
|
247
247
|
if (response.type == "text") {
|
248
|
+
response.text = response.variations ? (response.variations.concat(response.text))[Math.floor(Math.random() * (response.variations.length + 1))] : response.text;
|
248
249
|
return client.sendText(chatId, response.text);
|
249
250
|
}
|
250
251
|
if (response.type == "file") {
|
package/package.json
CHANGED