koishi-plugin-bilibili-notify 1.0.0-alpha.0 → 1.0.0-alpha.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/lib/index.js CHANGED
@@ -29,7 +29,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.apply = exports.Config = exports.name = void 0;
30
30
  const koishi_1 = require("koishi");
31
31
  // import crypto
32
- const crypto_1 = __importDefault(require("crypto"));
32
+ // import crypto from 'crypto'
33
33
  // import plugins
34
34
  // import Authority from './authority'
35
35
  const comRegister_1 = __importDefault(require("./comRegister"));
@@ -82,6 +82,6 @@ function apply(ctx, config) {
82
82
  });
83
83
  }
84
84
  exports.apply = apply;
85
- function generateKey() {
86
- return crypto_1.default.randomBytes(32).toString('hex');
87
- }
85
+ /* function generateKey(): string {
86
+ return crypto.randomBytes(32).toString('hex');
87
+ } */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koishi-plugin-bilibili-notify",
3
3
  "description": "Koishi bilibili notify plugin",
4
- "version": "1.0.0-alpha.0",
4
+ "version": "1.0.0-alpha.1",
5
5
  "contributors": [
6
6
  "Akokko <admin@akokko.com>"
7
7
  ],
@@ -44,6 +44,12 @@
44
44
  },
45
45
  "koishi": {
46
46
  "preview": true,
47
+ "service": {
48
+ "required": [
49
+ "database",
50
+ "puppeteer"
51
+ ]
52
+ },
47
53
  "description": {
48
54
  "zh": "开发中的Bilibili直播通知,动态推送插件。目前还只是个雏形,不建议使用,发布做测试用"
49
55
  },
package/readme.md CHANGED
@@ -2,4 +2,14 @@
2
2
 
3
3
  [![npm](https://img.shields.io/npm/v/koishi-plugin-bilibili-notify?style=flat-square)](https://www.npmjs.com/package/koishi-plugin-bilibili-notify)
4
4
 
5
- Koishi bilibili notify plugin
5
+ 此插件依赖于"database"和"puppeteer"服务,同时受权限控制,需要具备authority:3及以上的权限才能使用本插件提供的指令,你可以参考下面链接中的方法得到一个超级管理员账号(具有authority:5的最高权限)
6
+ https://koishi.chat/zh-CN/manual/usage/platform.html#%E9%85%8D%E7%BD%AE%E7%99%BB%E5%BD%95%E6%8F%92%E4%BB%B6
7
+
8
+ 您还可以安装admin插件,给其他用户授予权限,操作方法请参考下面的链接
9
+ https://koishi.chat/zh-CN/manual/usage/customize.html
10
+
11
+ 指令使用方法请参考 help bili,子命令使用方法请加-h,例如bili login -h
12
+
13
+ 本插件功能均建立在B站账号登录之上,所有操作之前请先登录
14
+
15
+ 登录方式为二维码,输入命令bili login之后扫码登录,您的登录凭证将存储在您的本地数据库,并由您自己填写的密钥加密,所以请保管好你的密钥