From 4154e0fc0223f837782bd408a3eb0a0fb9734c04 Mon Sep 17 00:00:00 2001 From: LittleC Date: Thu, 13 Jul 2023 00:56:23 +0800 Subject: [PATCH] feat(line): add adapter-line --- plugins/adapter/line/package.json | 49 ++++++++++++++++++++++++++++++ plugins/adapter/line/src/index.ts | 4 +++ plugins/adapter/line/tsconfig.json | 10 ++++++ 3 files changed, 63 insertions(+) create mode 100644 plugins/adapter/line/package.json create mode 100644 plugins/adapter/line/src/index.ts create mode 100644 plugins/adapter/line/tsconfig.json diff --git a/plugins/adapter/line/package.json b/plugins/adapter/line/package.json new file mode 100644 index 0000000000..ae724c1131 --- /dev/null +++ b/plugins/adapter/line/package.json @@ -0,0 +1,49 @@ +{ + "name": "@koishijs/plugin-adapter-line", + "description": "Line Adapter for Koishi", + "version": "1.0.0", + "main": "lib/index.js", + "module": "lib/index.mjs", + "typings": "lib/index.d.ts", + "files": [ + "lib" + ], + "author": "LittleC ", + "license": "MIT", + "repository": { + "type": "git", + "url": "git+https://github.com/satorijs/satori.git", + "directory": "adapters/line" + }, + "bugs": { + "url": "https://github.com/satorijs/satori/issues" + }, + "homepage": "https://koishi.chat/plugins/adapter/line.html", + "keywords": [ + "bot", + "line", + "chatbot", + "koishi" + ], + "koishi": { + "browser": true, + "description": { + "en": "Line Adapter", + "zh": "Line 适配器" + }, + "service": { + "implements": [ + "adapter" + ] + } + }, + "peerDependencies": { + "koishi": "^4.13.5" + }, + "devDependencies": { + "koishi": "^4.13.5" + }, + "dependencies": { + "@satorijs/adapter-line": "^1.0.0" + } +} diff --git a/plugins/adapter/line/src/index.ts b/plugins/adapter/line/src/index.ts new file mode 100644 index 0000000000..2b02212ef2 --- /dev/null +++ b/plugins/adapter/line/src/index.ts @@ -0,0 +1,4 @@ +import { LineBot } from '@satorijs/adapter-line' + +export default LineBot +export * from '@satorijs/adapter-line' diff --git a/plugins/adapter/line/tsconfig.json b/plugins/adapter/line/tsconfig.json new file mode 100644 index 0000000000..52cb76c703 --- /dev/null +++ b/plugins/adapter/line/tsconfig.json @@ -0,0 +1,10 @@ +{ + "extends": "../../../tsconfig.base", + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + }, + "include": [ + "src", + ], +} \ No newline at end of file