mirror of
https://github.com/cheveguerra/bot-whatsapp.git
synced 2026-04-20 04:29:16 +00:00
.
This commit is contained in:
22
.eslintrc.js
22
.eslintrc.js
@@ -1,16 +1,14 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
"env": {
|
env: {
|
||||||
"browser": true,
|
browser: true,
|
||||||
"commonjs": true,
|
commonjs: true,
|
||||||
"es2021": true,
|
es2021: true,
|
||||||
"node": true
|
node: true,
|
||||||
},
|
},
|
||||||
"extends": "eslint:recommended",
|
extends: 'eslint:recommended',
|
||||||
"overrides": [
|
overrides: [],
|
||||||
],
|
parserOptions: {
|
||||||
"parserOptions": {
|
ecmaVersion: 'latest',
|
||||||
"ecmaVersion": "latest"
|
|
||||||
},
|
},
|
||||||
"rules": {
|
rules: {},
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
4
.husky/pre-commit
Normal file
4
.husky/pre-commit
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
#!/usr/bin/env sh
|
||||||
|
. "$(dirname -- "$0")/_/husky.sh"
|
||||||
|
|
||||||
|
yarn run format:check && yarn run format:write
|
||||||
4
.husky/pre-push
Normal file
4
.husky/pre-push
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
#!/usr/bin/env sh
|
||||||
|
. "$(dirname -- "$0")/_/husky.sh"
|
||||||
|
|
||||||
|
yarn run lint:check && yarn run lint:fix
|
||||||
8
.prettierignore
Normal file
8
.prettierignore
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
packages/**/lib
|
||||||
|
**/.git
|
||||||
|
**/.svn
|
||||||
|
**/.hg
|
||||||
|
**/node_modules
|
||||||
|
*.mjs
|
||||||
|
*.cjs
|
||||||
|
*.md
|
||||||
4
.vscode/launch.json
vendored
4
.vscode/launch.json
vendored
@@ -8,9 +8,7 @@
|
|||||||
"type": "node",
|
"type": "node",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"name": "Iniciar el programa",
|
"name": "Iniciar el programa",
|
||||||
"skipFiles": [
|
"skipFiles": ["<node_internals>/**"],
|
||||||
"<node_internals>/**"
|
|
||||||
],
|
|
||||||
"program": "${workspaceFolder}\\example-app\\app.js"
|
"program": "${workspaceFolder}\\example-app\\app.js"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
23
CHANGELOG.md
23
CHANGELOG.md
@@ -1,14 +1,15 @@
|
|||||||
#### Actualización 14 Ene 2022
|
#### Actualización 14 Ene 2022
|
||||||
- npm update
|
|
||||||
- remove ora and chalk
|
- npm update
|
||||||
- add env
|
- remove ora and chalk
|
||||||
- add mysql
|
- add env
|
||||||
- add dialogflow
|
- add mysql
|
||||||
- add scan qr from webpage
|
- add dialogflow
|
||||||
- update route with middleware
|
- add scan qr from webpage
|
||||||
- fix send message to story
|
- update route with middleware
|
||||||
- external download
|
- fix send message to story
|
||||||
- easy deploy heroku
|
- external download
|
||||||
- add support for ubuntu/linux
|
- easy deploy heroku
|
||||||
|
- add support for ubuntu/linux
|
||||||
|
|
||||||
https://stackoverflow.com/questions/51855169/dialogflow-403-iam-permission-dialogflow-sessions-detectintent
|
https://stackoverflow.com/questions/51855169/dialogflow-403-iam-permission-dialogflow-sessions-detectintent
|
||||||
@@ -1,25 +1,25 @@
|
|||||||
version: '3.3'
|
version: '3.3'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
mongo:
|
mongo:
|
||||||
image: mongo
|
image: mongo
|
||||||
container_name: app_enviroment
|
container_name: app_enviroment
|
||||||
restart: always
|
restart: always
|
||||||
ports:
|
ports:
|
||||||
- "27019:27017"
|
- '27019:27017'
|
||||||
environment:
|
environment:
|
||||||
MONGO_INITDB_DATABASE: bot
|
MONGO_INITDB_DATABASE: bot
|
||||||
expose:
|
expose:
|
||||||
- 27019
|
- 27019
|
||||||
mysql:
|
mysql:
|
||||||
image: mysql
|
image: mysql
|
||||||
command: --default-authentication-plugin=mysql_native_password
|
command: --default-authentication-plugin=mysql_native_password
|
||||||
restart: always
|
restart: always
|
||||||
environment:
|
environment:
|
||||||
MYSQL_ROOT_PASSWORD: example
|
MYSQL_ROOT_PASSWORD: example
|
||||||
MYSQL_DATABASE: bot
|
MYSQL_DATABASE: bot
|
||||||
container_name: app_mysql
|
container_name: app_mysql
|
||||||
ports:
|
ports:
|
||||||
- "3306:3306"
|
- '3306:3306'
|
||||||
expose:
|
expose:
|
||||||
- 3306
|
- 3306
|
||||||
|
|||||||
@@ -21,7 +21,8 @@
|
|||||||
"test": "npm run test.unit && npm run test.e2e",
|
"test": "npm run test.unit && npm run test.e2e",
|
||||||
"cli": "node ./packages/cli/bin/cli.js",
|
"cli": "node ./packages/cli/bin/cli.js",
|
||||||
"dev:debug": "node --inspect ./example-app/app.js",
|
"dev:debug": "node --inspect ./example-app/app.js",
|
||||||
"dev": "node ./example-app/app.js"
|
"dev": "node ./example-app/app.js",
|
||||||
|
"prepare": "husky install"
|
||||||
},
|
},
|
||||||
"workspaces": [
|
"workspaces": [
|
||||||
"packages/*",
|
"packages/*",
|
||||||
@@ -46,7 +47,6 @@
|
|||||||
],
|
],
|
||||||
"repository": "https://github.com/leifermendez/bot-whatsapp",
|
"repository": "https://github.com/leifermendez/bot-whatsapp",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"dependencies": {},
|
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@rollup/plugin-commonjs": "^23.0.2",
|
"@rollup/plugin-commonjs": "^23.0.2",
|
||||||
"@rollup/plugin-json": "^5.0.1",
|
"@rollup/plugin-json": "^5.0.1",
|
||||||
@@ -62,7 +62,8 @@
|
|||||||
"rollup": "^3.2.3",
|
"rollup": "^3.2.3",
|
||||||
"rollup-plugin-cleanup": "^3.2.1",
|
"rollup-plugin-cleanup": "^3.2.1",
|
||||||
"rollup-plugin-copy": "^3.4.0",
|
"rollup-plugin-copy": "^3.4.0",
|
||||||
"uvu": "^0.5.6"
|
"uvu": "^0.5.6",
|
||||||
|
"husky": "^8.0.2"
|
||||||
},
|
},
|
||||||
"packageManager": "yarn@3.2.0",
|
"packageManager": "yarn@3.2.0",
|
||||||
"engines": {
|
"engines": {
|
||||||
|
|||||||
@@ -1516,6 +1516,11 @@ human-signals@^2.1.0:
|
|||||||
resolved "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz"
|
resolved "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz"
|
||||||
integrity sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==
|
integrity sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==
|
||||||
|
|
||||||
|
husky@^8.0.2:
|
||||||
|
version "8.0.2"
|
||||||
|
resolved "https://registry.yarnpkg.com/husky/-/husky-8.0.2.tgz#5816a60db02650f1f22c8b69b928fd6bcd77a236"
|
||||||
|
integrity sha512-Tkv80jtvbnkK3mYWxPZePGFpQ/tT3HNSs/sasF9P2YfkMezDl3ON37YN6jUUI4eTg5LcyVynlb6r4eyvOmspvg==
|
||||||
|
|
||||||
ieee754@^1.1.13:
|
ieee754@^1.1.13:
|
||||||
version "1.2.1"
|
version "1.2.1"
|
||||||
resolved "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz"
|
resolved "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz"
|
||||||
|
|||||||
Reference in New Issue
Block a user