1 Star 0 Fork 0

cyqand / vocechat-tools

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

vocechat工具

只需要配置基本信息,存储vocechat机器人接收到的消息和推送消息到ntfy。

背景

  1. 无法使用vocechat的推送服务,本应用对接vocechat使用ntfy进行vocechat消息的推送。
  2. 想要用自己的格式记录与重要人的聊天记录。

安装

环境如下:

python 3.10

使用

  1. 如果需要存储消息功能,先在mysql中新建一个表格。具体创建代码见根目录下 /doc/create_table.sql
  2. 配置vocechat的机器人:在vocechat中新建一个机器人,地址指向本服务的网址,例如: http://127.0.0.1:10200,另外新建一个api-key。
  3. 配置config.json的内容:
    • vocechat: 将vocechat的网址和机器人的api-key复制到该配置中。
    • ntfy: 设置ntfy的地址,消息优先级,消息topic前缀(后面ntfy订阅时用到)。
    • mysql: 存储消息,如果不需要存储消息,请将storage设置为false,后面为mysql基本配置,自行设置即可。
  4. 运行该项目。
  5. 单独对机器人发送 ntfy 或者 id 即可查看id,并根据提示在ntfy中订阅消息topic。
  6. 可以将机器人加入想要推送消息或者记录的群聊后,在群内发送消息测试是否能接收成功。单独发送消息到机器人也可接收到消息。

API

运行服务后请将vocechat的机器人指向本服务的 ip:10200/ 路径,进行消息的处理。

MIT License Copyright (c) 2024 cyqand Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

推送vocechat的消息到ntfy,并存储消息。 展开 收起
Python
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Python
1
https://gitee.com/cyqand/vocechat-tools.git
git@gitee.com:cyqand/vocechat-tools.git
cyqand
vocechat-tools
vocechat-tools
master

搜索帮助