Skip to content

Commit

Permalink
feat(whatsapp): add adapter-whatsapp
Browse files Browse the repository at this point in the history
  • Loading branch information
shigma committed Aug 11, 2023
1 parent d200dcb commit 3c359d7
Show file tree
Hide file tree
Showing 6 changed files with 71 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugins/adapter/slack/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.DS_Store
tsconfig.tsbuildinfo
5 changes: 5 additions & 0 deletions plugins/adapter/telegram/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# [@satorijs/adapter-telegram](https://koishi.chat/plugins/adapter/telegram.html)

Telegram adapter for [Satori](https://github.com/satorijs/satori).

- [Documentation](https://koishi.chat/plugins/adapter/telegram.html)
2 changes: 2 additions & 0 deletions plugins/adapter/whatsapp/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.DS_Store
tsconfig.tsbuildinfo
48 changes: 48 additions & 0 deletions plugins/adapter/whatsapp/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"name": "@koishijs/plugin-adapter-whatsapp",
"description": "Slack Adapter for Koishi",
"version": "1.0.0",
"main": "lib/index.js",
"module": "lib/index.mjs",
"typings": "lib/index.d.ts",
"files": [
"lib"
],
"author": "LittleC <[email protected]>",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/satorijs/satori.git",
"directory": "adapters/whatsapp"
},
"bugs": {
"url": "https://github.com/satorijs/satori/issues"
},
"homepage": "https://koishi.chat/plugins/adapter/whatsapp.html",
"keywords": [
"bot",
"whatsapp",
"chatbot",
"koishi"
],
"koishi": {
"description": {
"en": "WhatsApp Adapter",
"zh": "WhatsApp 适配器"
},
"service": {
"implements": [
"adapter"
]
}
},
"peerDependencies": {
"koishi": "^4.13.5"
},
"devDependencies": {
"koishi": "^4.13.5"
},
"dependencies": {
"@satorijs/adapter-whatsapp": "^1.0.0"
}
}
4 changes: 4 additions & 0 deletions plugins/adapter/whatsapp/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { WhatsAppAdapter } from '@satorijs/adapter-whatsapp'

export default WhatsAppAdapter
export * from '@satorijs/adapter-whatsapp'
10 changes: 10 additions & 0 deletions plugins/adapter/whatsapp/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"extends": "../../../tsconfig.base",
"compilerOptions": {
"outDir": "lib",
"rootDir": "src",
},
"include": [
"src",
],
}

0 comments on commit 3c359d7

Please sign in to comment.