Comments (4)
https://github.com/pcrbot/picfinder_take/blob/main/__init__.py
可以参考这个。
from arena.
https://github.com/pcrbot/picfinder_take/blob/main/__init__.py
可以参考这个。
我太菜了不会弄,文字可以取消前缀指令,图片的不会😂
from arena.
由于KOOK和QQ的消息接口不一样,我也并不开发KOOK机器人,因此我不会帮你编写具体的代码示例。
下面是关于我上面发给你的链接的解释。
链接里面是识图插件的实现文字和图片分离方式。简单来说,你需要缓存用户的状态。用户先发送一条指令(例如“搜图”),则将用户(在一定时间内)置于“搜图”状态。此时如果在检测到用户发送了图片,则触发搜图逻辑。反之,如果检测到用户发送了图片,但发现用户并不处于“搜图”状态,则无视此图片。
你可以参考这个逻辑进行实现。
from arena.
由于KOOK和QQ的消息接口不一样,我也并不开发KOOK机器人,因此我不会帮你编写具体的代码示例。
下面是关于我上面发给你的链接的解释。链接里面是识图插件的实现文字和图片分离方式。简单来说,你需要缓存用户的状态。用户先发送一条指令(例如“搜图”),则将用户(在一定时间内)置于“搜图”状态。此时如果在检测到用户发送了图片,则触发搜图逻辑。反之,如果检测到用户发送了图片,但发现用户并不处于“搜图”状态,则无视此图片。
你可以参考这个逻辑进行实现。
👌
from arena.
Related Issues (10)
- repo主知道现在还有什么方式获取apikey吗? HOT 3
- 这个是什么意思,没看懂 HOT 2
- 找不到模块 HOT 2
- 找不到指定模块 HOT 5
- 函数未定义 HOT 5
- 显示爱梅斯未实装 HOT 1
- 函数未定义 HOT 1
- 查询后未找到解法,返回值103 HOT 2
- 无法识别mac版QQ传过来的图片 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arena.