GithubHelp home page GithubHelp logo

twobot's People

Contributors

scsofts avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

liyk123

twobot's Issues

事件的设置好像有点问题ww

今天做了下 bot 的戳一戳
然后翻了翻 twobot.hh 看见了 GroupNotifyNotice
一开始我是这么写的:

image

发现根本没有反应

然后我在第一个 if 前加了个 cout
又试了试 结果 cout 也没有触发

然后我就把 onebot 服务端的 log_level 改成了 Debug
看了下戳一戳的事件

P HB~(E{OXJ Z1L{3ZFC`IV
我看里面的 notice_type 是 group

于是我就试着把 twobot.hh 里的 GroupNotifyNotice 中 "group_notify" 改成了 "group"
image

然后又把 twobot.cc 里 if 的条件也改成了 group
image

现在 bot 就能正常反应了
6F358F7D1D9D38B2632A91456607F684

然后我又测试了下
C0) 6E)2GEVKCMP4T87O4RI
上传文件是 "message" "group"

RM8{S~%J5B`Z)LX37RCLLTP
禁言是 "notice" "group" 禁言时间是其中的 duration 单位是秒

而解除禁言只是把 duration 设置成 0
B1F() VSG$S%W9_GRC%1

9ABHBS~1RPJF`WV$ Q}{T@J
管理员也是 "notice" "group"

别的还没测试..

顺便问一下 bot 怎么在群里拍别人 用 CQ:poke 太怪了
B636B388D08CC8C84B4A2A36B10A698A
这是私聊的戳一戳吧()
原来能发到群里吗www

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.