Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/atorber/wechaty-vika-uploader
wechaty vika维格表插件
https://github.com/atorber/wechaty-vika-uploader
chatbot vika wechaty
Last synced: about 1 month ago
JSON representation
wechaty vika维格表插件
- Host: GitHub
- URL: https://github.com/atorber/wechaty-vika-uploader
- Owner: atorber
- Created: 2022-01-16T03:41:48.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-01-17T15:15:20.000Z (12 months ago)
- Last Synced: 2024-10-19T22:29:32.579Z (3 months ago)
- Topics: chatbot, vika, wechaty
- Language: JavaScript
- Homepage:
- Size: 7.2 MB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# WechatyVikaUploader
## 简介
wechaty微信机器人聊天消息备份到维表格vika插件
支持wechaty 1.x
## 快速入门
1. 到 [维格表官网](https://vika.cn/) 注册维格表账号
2. 创建一个维格表空间
3. 获取维格表token
![vika](./doc/images/vika_token.png)
4. 配置维格表信息
```
const VIKA_TOKEN = 'xxxxx' // VIKA维格表token
const VIKA_SPACENAME = 'xxxxx' // VIKA维格表空间名称
```5. 运行如下命令配置环境变量,示例中使用了padlocal,可以自行更换为其他puppet,可以在 [padlocal官网](http://pad-local.com/#/login) 申请7天免费token
```
export WECHATY_PUPPET=wechaty-puppet-padlocal
export WECHATY_PUPPET_PADLOCAL_TOKEN="替换为padloac token"
```
> 当前版本需要在主程序文件相同目录下新建一个folder文件夹用于存放文件缓存6. 运行
```
npm run ding-dong-bot
```> 首次运行时,会自动在空间下创建Room、Message、Contact、Wechaty、Event 5个系统表,可参考ripe-vika.ts,设置是否同步RoomList和ContactList到维格表
![vika](./doc/images/vika.png)
## NPM方式安装
该插件已发布为npm包
安装:
```
npm install wechaty-vika-link@next```
使用demo参考 examples/ripe-npm.js
## 效果展示
![vika](./doc/images/demo.png)
## 版本
main v1.0.4
1. 自动创建wechaty类对应的系统表
2. 支持主动同步群和联系人列表
3. 表字段按wechaty类一一对应v0.17.0
1. 变更表字段名称为英文命名方式
2. 表结构```
[
{
fields: {
_id: '8647378336392492845',
timeHms: '2022-05-09 00:44:44',
name: 'luyuchao',
topic: '专属清单Discard',
messagePayload: 'hhh',
wxid: 'xxxx',
roomid: '20641535286@chatroom',
messageType: 'Text',
file: []
}
}
]
```