Commit e27e2f43 authored by nanahira's avatar nanahira

that koishi version is really buggy

parent b5d162e5
Pipeline #15653 failed with stages
in 2 minutes and 28 seconds
This diff is collapsed.
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
"test:e2e": "jest --config ./test/jest-e2e.json" "test:e2e": "jest --config ./test/jest-e2e.json"
}, },
"dependencies": { "dependencies": {
"@koishijs/plugin-adapter-onebot": "^4.2.4", "@koishijs/plugin-adapter-onebot": "^5.0.7",
"@nestjs/common": "^8.0.0", "@nestjs/common": "^8.0.0",
"@nestjs/config": "^2.0.0", "@nestjs/config": "^2.0.0",
"@nestjs/core": "^8.0.0", "@nestjs/core": "^8.0.0",
...@@ -30,8 +30,8 @@ ...@@ -30,8 +30,8 @@
"@nestjs/typeorm": "^8.0.3", "@nestjs/typeorm": "^8.0.3",
"class-transformer": "^0.5.1", "class-transformer": "^0.5.1",
"class-validator": "^0.13.2", "class-validator": "^0.13.2",
"koishi": "^4.7.1", "koishi": "^4.8.5",
"koishi-nestjs": "^5.1.0", "koishi-nestjs": "^6.0.3",
"moment": "^2.29.2", "moment": "^2.29.2",
"pg": "^8.7.3", "pg": "^8.7.3",
"pg-native": "^3.0.0", "pg-native": "^3.0.0",
......
...@@ -2,7 +2,7 @@ import { Module } from '@nestjs/common'; ...@@ -2,7 +2,7 @@ import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm'; import { TypeOrmModule } from '@nestjs/typeorm';
import { ConfigModule, ConfigService } from '@nestjs/config'; import { ConfigModule, ConfigService } from '@nestjs/config';
import { KoishiModule, PluginDef } from 'koishi-nestjs'; import { KoishiModule, PluginDef } from 'koishi-nestjs';
import OneBot, { BotConfig } from '@koishijs/plugin-adapter-onebot'; import OneBot from '@koishijs/plugin-adapter-onebot';
import { RankRecord } from './entities/rank-record.entity'; import { RankRecord } from './entities/rank-record.entity';
import { RecordService } from './record/record.service'; import { RecordService } from './record/record.service';
import { CommandService } from './command/command.service'; import { CommandService } from './command/command.service';
...@@ -34,20 +34,14 @@ import { CommandService } from './command/command.service'; ...@@ -34,20 +34,14 @@ import { CommandService } from './command/command.service';
inject: [ConfigService], inject: [ConfigService],
useFactory: async (config: ConfigService) => { useFactory: async (config: ConfigService) => {
return { return {
minSimilarity: 0,
help: false,
prefix: '.', prefix: '.',
actionErrorMessage: '', actionErrorMessage: '',
usePlugins: [ usePlugins: [
PluginDef(OneBot, { PluginDef(OneBot, {
bots: [ protocol: 'ws',
{ endpoint: config.get('ONEBOT_HOST'),
protocol: 'ws', token: config.get('ONEBOT_TOKEN'),
endpoint: config.get('ONEBOT_HOST'), selfId: config.get('ONEBOT_ID'),
token: config.get('ONEBOT_TOKEN'),
selfId: config.get('ONEBOT_ID'),
},
] as BotConfig[],
}), }),
], ],
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment