Giter Site home page Giter Site logo

Comments (4)

watermellye avatar watermellye commented on August 23, 2024

https://github.com/pcrbot/picfinder_take/blob/main/__init__.py
可以参考这个。

from arena.

duoshoumiao avatar duoshoumiao commented on August 23, 2024

https://github.com/pcrbot/picfinder_take/blob/main/__init__.py
可以参考这个。

我太菜了不会弄,文字可以取消前缀指令,图片的不会😂

from arena.

watermellye avatar watermellye commented on August 23, 2024

由于KOOK和QQ的消息接口不一样,我也并不开发KOOK机器人,因此我不会帮你编写具体的代码示例。
下面是关于我上面发给你的链接的解释。

链接里面是识图插件的实现文字和图片分离方式。简单来说,你需要缓存用户的状态。用户先发送一条指令(例如“搜图”),则将用户(在一定时间内)置于“搜图”状态。此时如果在检测到用户发送了图片,则触发搜图逻辑。反之,如果检测到用户发送了图片,但发现用户并不处于“搜图”状态,则无视此图片。

你可以参考这个逻辑进行实现。

from arena.

duoshoumiao avatar duoshoumiao commented on August 23, 2024

由于KOOK和QQ的消息接口不一样,我也并不开发KOOK机器人,因此我不会帮你编写具体的代码示例。
下面是关于我上面发给你的链接的解释。

链接里面是识图插件的实现文字和图片分离方式。简单来说,你需要缓存用户的状态。用户先发送一条指令(例如“搜图”),则将用户(在一定时间内)置于“搜图”状态。此时如果在检测到用户发送了图片,则触发搜图逻辑。反之,如果检测到用户发送了图片,但发现用户并不处于“搜图”状态,则无视此图片。

你可以参考这个逻辑进行实现。

👌

from arena.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.