解决promise问题

main
落雨楓 3 years ago
parent 662761bd29
commit a5df4c675b

1
.gitignore vendored

@ -2,3 +2,4 @@ config.yml
subscribe.yml
node_modules/
dist/
*.zip

@ -1,2 +1,7 @@
const Promise = require('bluebird');
Promise.config({
cancellation: true,
});
var App = require('./dist/App').default;
new App(__dirname + "/config.yml");

19
package-lock.json generated

@ -27,6 +27,7 @@
"yaml": "^1.8.3"
},
"devDependencies": {
"@types/bluebird-global": "^3.5.13",
"@types/koa": "^2.13.4",
"@types/koa-router": "^7.4.4",
"@types/micromatch": "^4.0.2",
@ -106,6 +107,15 @@
"integrity": "sha512-HBNx4lhkxN7bx6P0++W8E289foSu8kO8GCk2unhuVggO+cE7rh9DhZUyPhUxNRG9m+5B5BTKxZQ5ZP92x/mx9Q==",
"dev": true
},
"node_modules/@types/bluebird-global": {
"version": "3.5.13",
"resolved": "https://registry.npmmirror.com/@types/bluebird-global/-/bluebird-global-3.5.13.tgz",
"integrity": "sha512-jmq47VdRYy8KPjXDlJ6zO5Ie+l5j0X2fGdSbfCS3mGdM93MTy50dh/EfltIv/QD15hCYTY+0lm/C0Bou1tPYnQ==",
"dev": true,
"dependencies": {
"@types/bluebird": "*"
}
},
"node_modules/@types/body-parser": {
"version": "1.19.2",
"resolved": "https://registry.npmmirror.com/@types/body-parser/-/body-parser-1.19.2.tgz",
@ -2330,6 +2340,15 @@
"integrity": "sha512-HBNx4lhkxN7bx6P0++W8E289foSu8kO8GCk2unhuVggO+cE7rh9DhZUyPhUxNRG9m+5B5BTKxZQ5ZP92x/mx9Q==",
"dev": true
},
"@types/bluebird-global": {
"version": "3.5.13",
"resolved": "https://registry.npmmirror.com/@types/bluebird-global/-/bluebird-global-3.5.13.tgz",
"integrity": "sha512-jmq47VdRYy8KPjXDlJ6zO5Ie+l5j0X2fGdSbfCS3mGdM93MTy50dh/EfltIv/QD15hCYTY+0lm/C0Bou1tPYnQ==",
"dev": true,
"requires": {
"@types/bluebird": "*"
}
},
"@types/body-parser": {
"version": "1.19.2",
"resolved": "https://registry.npmmirror.com/@types/body-parser/-/body-parser-1.19.2.tgz",

@ -33,6 +33,7 @@
"yaml": "^1.8.3"
},
"devDependencies": {
"@types/bluebird-global": "^3.5.13",
"@types/koa": "^2.13.4",
"@types/koa-router": "^7.4.4",
"@types/micromatch": "^4.0.2",

@ -1,4 +1,3 @@
import Bluebird from "bluebird";
import TelegramBot from "node-telegram-bot-api";
import App from "../App";
import { Robot } from "../RobotManager";

Loading…
Cancel
Save