koishi-plugin-recorder
Advanced tools
Comparing version 1.0.0-alpha.0 to 1.0.0-alpha.1
@@ -0,0 +0,0 @@ /// <reference types="node" /> |
@@ -0,0 +0,0 @@ "use strict"; |
{ | ||
"name": "koishi-plugin-recorder", | ||
"description": "Save Chat Records for Koishi", | ||
"version": "1.0.0-alpha.0", | ||
"version": "1.0.0-alpha.1", | ||
"main": "dist/index.js", | ||
@@ -37,5 +37,5 @@ "typings": "dist/index.d.ts", | ||
"dependencies": { | ||
"koishi-core": "^1.4.0", | ||
"koishi-core": "^1.5.0", | ||
"koishi-utils": "^1.0.2" | ||
} | ||
} |
# [koishi-plugin-recorder](https://koishi.js.org/plugins/recorder.html) | ||
[](https://www.npmjs.com/package/koishi-plugin-recorder) |
@@ -0,0 +0,0 @@ import { Context, Meta, onStop } from 'koishi-core' |
import { MockedApp, BASE_SELF_ID } from 'koishi-test-utils' | ||
import { startAll, stopAll } from 'koishi-core' | ||
import { readFileSync } from 'fs-extra' | ||
import { resolve } from 'path' | ||
import { sleep } from 'koishi-utils' | ||
import * as recorder from '../src' | ||
import del from 'del' | ||
import { readFileSync } from 'fs-extra' | ||
import { resolve } from 'path' | ||
@@ -38,3 +39,4 @@ const app1 = new MockedApp() | ||
await stopAll() | ||
await sleep(100) | ||
expect(readFileSync(resolve(outFolder, '321.txt'), 'utf8')).toMatchSnapshot() | ||
}) |
@@ -0,0 +0,0 @@ { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
168
144342
Updatedkoishi-core@^1.5.0