koishi-plugin-cocoyyy-console 1.0.15 → 1.0.16-beta.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.
Files changed (2) hide show
  1. package/lib/index.js +0 -19
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -1363,24 +1363,6 @@ function registerTestCommands(ctx) {
1363
1363
  }
1364
1364
  __name(registerTestCommands, "registerTestCommands");
1365
1365
 
1366
- // src/infra/redis_init.ts
1367
- var import_ioredis = __toESM(require("ioredis"));
1368
- var redis;
1369
- function init_redis(config) {
1370
- try {
1371
- if (!redis) {
1372
- redis = new import_ioredis.default(config.redis_url);
1373
- }
1374
- redis.ping();
1375
- logger.info("redis连接成功");
1376
- return true;
1377
- } catch (error) {
1378
- logger.error("redis连接失败: " + error);
1379
- return false;
1380
- }
1381
- }
1382
- __name(init_redis, "init_redis");
1383
-
1384
1366
  // src/services/kuro_func/kuro_service.ts
1385
1367
  var import_axios = __toESM(require("axios"));
1386
1368
  var import_qs = __toESM(require("qs"));
@@ -1805,7 +1787,6 @@ async function apply(ctx, config) {
1805
1787
  ctx = ctx.guild();
1806
1788
  dev_mode = config.function_config.dev_mode;
1807
1789
  initSequelize(config?.mysql_config);
1808
- init_redis(config?.redis_config);
1809
1790
  const connected = await testConnect();
1810
1791
  if (connected) {
1811
1792
  await getTagsModel().sync();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koishi-plugin-cocoyyy-console",
3
3
  "description": "自用koishi插件,功能包含复读,记录黑历史,*人等",
4
- "version": "1.0.15",
4
+ "version": "1.0.16-beta.1",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "contributors": [