Compare commits

...

31 Commits

Author SHA1 Message Date
谷風 天音 たにかぜ あまね 61570f7a8b
Merge branch 'clansty:rainbowcat' into rainbowcat 2024-01-10 18:02:50 +08:00
Clansty fe0fc61d2e
deps: bump prisma to 5.8 2024-01-10 16:01:24 +08:00
凌莞~(=^▽^=) 43d1029165
Merge pull request #169 from clansty/dependabot/npm_and_yarn/types/prompts-2.4.9
chore(deps-dev): bump @types/prompts from 2.4.8 to 2.4.9
2024-01-10 15:55:48 +08:00
dependabot[bot] 305afc6ba9
chore(deps-dev): bump @types/prompts from 2.4.8 to 2.4.9
Bumps [@types/prompts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/prompts) from 2.4.8 to 2.4.9.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/prompts)

---
updated-dependencies:
- dependency-name: "@types/prompts"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-10 07:55:35 +00:00
凌莞~(=^▽^=) f0acf253d9
Merge pull request #168 from clansty/dependabot/npm_and_yarn/file-type-19.0.0
chore(deps): bump file-type from 17.1.6 to 19.0.0
2024-01-10 15:55:00 +08:00
凌莞~(=^▽^=) da4aa3d9f8
Merge pull request #167 from clansty/dependabot/npm_and_yarn/types/sharp-0.32.0
chore(deps-dev): bump @types/sharp from 0.31.1 to 0.32.0
2024-01-10 15:54:51 +08:00
凌莞~(=^▽^=) 1df17e207a
Merge pull request #166 from clansty/dependabot/npm_and_yarn/baidu-aip-sdk-4.16.15
chore(deps): bump baidu-aip-sdk from 4.16.13 to 4.16.15
2024-01-10 15:54:41 +08:00
凌莞~(=^▽^=) e6a3a95768
Merge pull request #165 from clansty/dependabot/npm_and_yarn/prisma/client-5.8.0
chore(deps): bump @prisma/client from 5.7.1 to 5.8.0
2024-01-10 15:54:27 +08:00
dependabot[bot] 40178eb68e
chore(deps): bump baidu-aip-sdk from 4.16.13 to 4.16.15
Bumps [baidu-aip-sdk](https://github.com/Baidu-AIP/nodejs-sdk) from 4.16.13 to 4.16.15.
- [Release notes](https://github.com/Baidu-AIP/nodejs-sdk/releases)
- [Commits](https://github.com/Baidu-AIP/nodejs-sdk/commits)

---
updated-dependencies:
- dependency-name: baidu-aip-sdk
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-10 07:52:49 +00:00
dependabot[bot] ac4a820ecf
chore(deps): bump file-type from 17.1.6 to 19.0.0
Bumps [file-type](https://github.com/sindresorhus/file-type) from 17.1.6 to 19.0.0.
- [Release notes](https://github.com/sindresorhus/file-type/releases)
- [Commits](https://github.com/sindresorhus/file-type/compare/v17.1.6...v19.0.0)

---
updated-dependencies:
- dependency-name: file-type
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-10 07:51:35 +00:00
dependabot[bot] 6867d29e54
chore(deps-dev): bump @types/sharp from 0.31.1 to 0.32.0
Bumps [@types/sharp](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/sharp) from 0.31.1 to 0.32.0.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/sharp)

---
updated-dependencies:
- dependency-name: "@types/sharp"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-10 07:51:33 +00:00
dependabot[bot] 7d313431c1
chore(deps): bump @prisma/client from 5.7.1 to 5.8.0
Bumps [@prisma/client](https://github.com/prisma/prisma/tree/HEAD/packages/client) from 5.7.1 to 5.8.0.
- [Release notes](https://github.com/prisma/prisma/releases)
- [Commits](https://github.com/prisma/prisma/commits/5.8.0/packages/client)

---
updated-dependencies:
- dependency-name: "@prisma/client"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-10 07:51:33 +00:00
Clansty 8db36a261e
deps: update quote-api and avoid dependabot change lock file 2024-01-10 15:50:36 +08:00
Clansty 1003bdfdb0
fix: ci 2024-01-10 00:20:49 +08:00
Clansty a35895ee0c
chore: 更改 loglevel 2024-01-09 23:43:08 +08:00
凌莞~(=^▽^=) eca61fc5be
Merge pull request #164 from clansty/dependabot/npm_and_yarn/ts-node-10.9.2
chore(deps-dev): bump ts-node from 10.9.1 to 10.9.2
2024-01-09 20:17:01 +08:00
dependabot[bot] 32b24957d3
chore(deps-dev): bump ts-node from 10.9.1 to 10.9.2
Bumps [ts-node](https://github.com/TypeStrong/ts-node) from 10.9.1 to 10.9.2.
- [Release notes](https://github.com/TypeStrong/ts-node/releases)
- [Changelog](https://github.com/TypeStrong/ts-node/blob/main/development-docs/release-template.md)
- [Commits](https://github.com/TypeStrong/ts-node/compare/v10.9.1...v10.9.2)

---
updated-dependencies:
- dependency-name: ts-node
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-09 12:16:23 +00:00
凌莞~(=^▽^=) 78070f5cf0
Merge pull request #163 from clansty/dependabot/npm_and_yarn/typescript-5.3.3
chore(deps-dev): bump typescript from 5.2.2 to 5.3.3
2024-01-09 20:15:31 +08:00
dependabot[bot] 238b1247c2
chore(deps-dev): bump typescript from 5.2.2 to 5.3.3
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 5.2.2 to 5.3.3.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v5.2.2...v5.3.3)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-09 12:12:59 +00:00
凌莞~(=^▽^=) 36b8f11f2c
Merge pull request #162 from clansty/dependabot/npm_and_yarn/types/node-20.10.7
chore(deps-dev): bump @types/node from 18.18.8 to 20.10.7
2024-01-09 20:12:05 +08:00
dependabot[bot] ef235d0966
chore(deps-dev): bump @types/node from 18.18.8 to 20.10.7
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.18.8 to 20.10.7.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-09 12:07:33 +00:00
凌莞~(=^▽^=) 48d70e17e8
Merge pull request #161 from clansty/dependabot/npm_and_yarn/image-size-1.1.1
chore(deps): bump image-size from 1.0.2 to 1.1.1
2024-01-09 20:06:46 +08:00
凌莞~(=^▽^=) 955cd1f0bc
Merge pull request #160 from clansty/dependabot/npm_and_yarn/prisma/client-5.7.1
chore(deps): bump @prisma/client from 5.5.2 to 5.7.1
2024-01-09 20:06:27 +08:00
dependabot[bot] ea61aa6b05
chore(deps): bump @prisma/client from 5.5.2 to 5.7.1
Bumps [@prisma/client](https://github.com/prisma/prisma/tree/HEAD/packages/client) from 5.5.2 to 5.7.1.
- [Release notes](https://github.com/prisma/prisma/releases)
- [Commits](https://github.com/prisma/prisma/commits/5.7.1/packages/client)

---
updated-dependencies:
- dependency-name: "@prisma/client"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-09 12:02:25 +00:00
dependabot[bot] f9f4c60c5b
chore(deps): bump image-size from 1.0.2 to 1.1.1
Bumps [image-size](https://github.com/image-size/image-size) from 1.0.2 to 1.1.1.
- [Release notes](https://github.com/image-size/image-size/releases)
- [Commits](https://github.com/image-size/image-size/compare/v1.0.2...v1.1.1)

---
updated-dependencies:
- dependency-name: image-size
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-09 12:02:20 +00:00
凌莞~(=^▽^=) 3dd3734421
Merge pull request #159 from clansty/dependabot/npm_and_yarn/prisma-5.7.1
chore(deps): bump prisma from 5.5.2 to 5.7.1
2024-01-09 20:01:27 +08:00
凌莞~(=^▽^=) cf6adeb1a4
Merge pull request #158 from clansty/dependabot/npm_and_yarn/sharp-0.33.1
chore(deps): bump sharp from 0.32.6 to 0.33.1
2024-01-09 20:01:06 +08:00
dependabot[bot] d7358409e4
chore(deps): bump prisma from 5.5.2 to 5.7.1
Bumps [prisma](https://github.com/prisma/prisma/tree/HEAD/packages/cli) from 5.5.2 to 5.7.1.
- [Release notes](https://github.com/prisma/prisma/releases)
- [Commits](https://github.com/prisma/prisma/commits/5.7.1/packages/cli)

---
updated-dependencies:
- dependency-name: prisma
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-09 12:00:40 +00:00
dependabot[bot] 24edc40495
chore(deps): bump sharp from 0.32.6 to 0.33.1
Bumps [sharp](https://github.com/lovell/sharp) from 0.32.6 to 0.33.1.
- [Release notes](https://github.com/lovell/sharp/releases)
- [Changelog](https://github.com/lovell/sharp/blob/main/docs/changelog.md)
- [Commits](https://github.com/lovell/sharp/compare/v0.32.6...v0.33.1)

---
updated-dependencies:
- dependency-name: sharp
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-09 12:00:34 +00:00
凌莞~(=^▽^=) 1ab27798a5
Merge pull request #157 from Nofated095/patch-1
Create dependabot.yml
2024-01-09 19:59:46 +08:00
谷風 天音 たにかぜ あまね 752d5ad9bf
Create dependabot.yml 2024-01-09 19:58:05 +08:00
6 changed files with 534 additions and 545 deletions

11
.github/dependabot.yml vendored Normal file
View File

@ -0,0 +1,11 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
version: 2
updates:
- package-ecosystem: "npm" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "daily"

View File

@ -17,32 +17,32 @@
"@types/date-and-time": "^0.13.0",
"@types/fluent-ffmpeg": "^2.1.24",
"@types/lodash": "^4.14.201",
"@types/node": "^18.6.3",
"@types/prompts": "^2.4.8",
"@types/sharp": "^0.31.1",
"ts-node": "^10.9.1",
"typescript": "^5.2.2"
"@types/node": "^20.10.7",
"@types/prompts": "^2.4.9",
"@types/sharp": "^0.32.0",
"ts-node": "^10.9.2",
"typescript": "^5.3.3"
},
"dependencies": {
"@prisma/client": "5.5.2",
"@prisma/client": "5.8.0",
"axios": "^0.27.2",
"baidu-aip-sdk": "^4.16.10",
"baidu-aip-sdk": "^4.16.15",
"big-integer": "^1.6.51",
"cli-progress": "^3.11.2",
"date-and-time": "^2.4.1",
"dotenv": "^16.0.1",
"eviltransform": "^0.2.2",
"file-type": "^17.1.4",
"file-type": "^19.0.0",
"fluent-ffmpeg": "^2.1.2",
"icqq": "^0.6.7",
"image-size": "^1.0.2",
"image-size": "^1.1.1",
"lodash": "^4.17.21",
"log4js": "^6.6.1",
"nodejs-base64": "^2.0.0",
"prisma": "5.5.2",
"prisma": "5.8.0",
"prompts": "^2.4.2",
"quote-api": "https://github.com/Clansty/quote-api/archive/8a47aa84e6920afd00fb8a2d56e816dbcb6c1283.tar.gz",
"sharp": "^0.32.6",
"quote-api": "https://github.com/Clansty/quote-api/archive/37a0e48a434b94bb04c04c7d86d9f0d2295df869.tar.gz",
"sharp": "^0.33.1",
"silk-sdk": "^0.2.2",
"telegram": "^2.19.10",
"tmp-promise": "^3.0.3",

File diff suppressed because it is too large Load Diff

View File

@ -21,7 +21,7 @@ import { randomBytes } from 'crypto';
import { escapeXml, gzip, timestamp } from 'icqq/lib/common';
import { pb } from 'icqq/lib/core';
const LOG_LEVEL: LogLevel = process.env.LOG_LEVEL as LogLevel || 'info';
const LOG_LEVEL: LogLevel = process.env.LOG_LEVEL as LogLevel || 'warn';
type MessageHandler = (event: PrivateMessageEvent | GroupMessageEvent) => Promise<boolean | void>

View File

@ -45,7 +45,6 @@ export default class {
await this.getMessages();
this.currentStatus = 'getMedia';
await this.messagesToTxt();
console.log(this.importTxt, this.filesMap);
this.currentStatus = 'uploadMessage';
await this.updateStatusMessage();
/* await this.importMessagesAndMedia(); */

View File

@ -411,7 +411,6 @@ export default class ForwardService {
}<hr hidden="false" style="0" /><summary size="26" color="#777777"></summary
></item><source name="Q2TG" icon="" action="" appid="-1" /></msg>`.replaceAll('\n', ''),
});
console.log(chain);
brief += '[Spoiler 图片]';
}
else {
@ -663,7 +662,6 @@ export default class ForwardService {
}
}
tempFiles.forEach(it => it.cleanup());
console.log(qqMessages);
return qqMessages;
}
catch (e) {