Giter Club home page Giter Club logo

bot-docs's People

Contributors

daidr avatar daijichen avatar drincann avatar ggpcn avatar huanyue2019 avatar hwygithub avatar ivyinga avatar joy-wang avatar lichukuan avatar mengjie0320 avatar ostli avatar realheart avatar sauceplum avatar tangbinbai avatar traveler-vee avatar uikoo9 avatar vissong avatar vnues avatar wzpan avatar xiaomujin avatar zoswing avatar

Stargazers

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

Watchers

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

bot-docs's Issues

关于机器人的若干建议

Q群机器人:
1.加群审核事件,现有的官方加群自动审批,过于简单,比如我需要指定qq号、指定备注等等。
2.成员变动事件,成员加入或退出,允许机器人获取并发布提醒语句。
3.主动推送消息功能,基于webhook的主动消息发送。
4.禁言事件,对发到群内的关键词可以设置禁言,并提供禁言解除事件。
5.群消息监听事件,用于对话或消息提醒。

PS:对于违法关键词等,官方做校验,但同样的开发者也会有自己需要的关键词

dhf

dtdg hdhd

点击md文本中的链接后被发送了一条消息, 这功能是否涉及注入攻击?

这是一段文本
这是一个按钮

今天碰到一条消息, 点击里面的按钮后会向发送一条 我是男娘 的消息, 这按钮在用户不知情的情况下进行了操作, 感觉是个大漏洞


官方修了就会close的,官方没关就是还没修或者没看GitHub,官方不看GitHub那关不关也就无所谓了


这 issues 在 Recent activity 中看着碍眼, 关了.
早该有官方人员回复的, 但直到现在都没有, 我不知道这是什么原因但这足以让我对QQ开发组感到心灰意冷, 这效率未免太过于低下了

自从使用了QQ收入就如同跌入了魔窟, 花费的时间太多得到的回报太少, 基于此, 我同时也将停止使用QQ

QQ频道对私域机器人的私信能不能取消三条消息的限制

QQ频道中,对私域机器人的私信,能不能取消三条消息的限制?
我自己写SDK,需要发频道私信给私域机器人进行测试,发了三条以后就没法发了(还在找哪里写错了)
提示的是:“你已经发送了3条消息,请耐心等待回复”
结果就是我没法继续测试SDK了

[BUG&REQUEST] v2文档中存在的错误 和 一点小提议

bug

API 调用|鉴权 - 获取接口凭证

属性 类型 说明
access_token string 获取到的凭证。
expires_in number 凭证有效时间,单位:秒。目前是7200秒之内的值。
  • 实际返回中expires_in为string
  • 但是按照语义此值应该为number。。为啥要用字符串传数字:(

一点提议

  • v2的api支持使用v1的api验证方式(Bot {id}.{token}),方便开发者适配和维护
  • 对于v1的api的返回类型中标出可能为空的属性
  • 统一api的返回格式
    • 无论如何不直接返回空响应body
      • 对于返回类型为数组的api,若数组为空就直接返回空响应body了,个人感觉不够恰当
      • 对于post或put等没有响应的操作,能否考虑返回当前操作的执行状态等
    • 返回的对象从openapi 错误返回的对象继承,方便开发者处理
      {
        "code": 10001,
        "message": "", // 错误信息
        "data": null // 返回的数据
      }

NodeSDK 无法获取到频道列表

如下图:一直无法获取到频道列表

系统信息:
node: v14.18.1
mac m1 系统

是不是还需要什么配置?

const { createOpenAPI } = require('qq-guild-bot');

const testConfig = {
  appID: 'xxx',
  token: 'xxx',
  intents: [ 'MESSAGE_AUDIT', 'GUILDS', 'PUBLIC_GUILD_MESSAGES' ], // 事件订阅,用于开启可接收的消息类型
  sandbox: false, // 沙箱支持,可选,默认false. v2.7.0+
};

async function main() {
 const res = await client.meApi.me();
 console.log(res); // 可以正常获取
  let { data } = await client.meApi.meGuilds();
  console.log(data); // 一直是空的
}

main();

证书过期

W{{%PZPUDQA}41K3U0L~43N
R6S(X~TGU0%0)3T94T}XR%E

cdn的证书貌似过期了,无法正常打开文档,显示不安全

权限问题

对于非频道主创建的机器人,即使赋予所有管理权限,成为“小管家”,也不能进行禁言、踢人等管理员的操作

ducumentation v2 表情表态对象中有错误

https://bot.q.qq.com/wiki/develop/api-v2/openapi/reaction/model.html#MessageReaction
a441fa2ba0e462b64b42312757265d16
如图,API返回的ReactionTarget中的type是字符串值,例如"ReactionTargetType_MSG",不是文档中所写的ReactionTargetType枚举类型

[13:40:22 DBG] WebSocket接收 => {"op":0,"s":4,"t":"MESSAGE_REACTION_ADD","id":"MESSAGE_REACTION_ADD:650eeb77-39d5-447e-b69e-24cda37a6d1a","d":{"channel_id":"633611136","emoji":{"id":"128076","type":2},"guild_id":"15891579067150311249","target":{"id":"08d1be9c8ceede8ec5dc011080c790ae02386448c1efbaab06","type":"ReactionTargetType_MSG"},"user_id":"17663315303296870640"}
[13:40:22 INF] MessageReactionAdd

当post_message 接口 content内容里有 单引号 括号 这种符号的时候 就501报错

'os.system(command) 的作用是在操作系统下运行一个命令。\n\n例如,以下代码可以打开系统自带的计算器:\n\npython\nimport os\n\nos.system("calc")\n\n\n在命令行中输入 calc 也可以打开计算器,os.system("calc") 的效果等同于在命令行中输入 calc。\n\n需要注意的是,os.system 执行命令后返回的是操作系统的返回码。如果命令执行成功,返回码为 0,否则返回其他值,可以根据返回码判断命令是否执行成功。\n\n值得注意的是,在使用 os.system 的时候,要谨慎使用涉及敏感文件或系统权限的命令,以免造成不必要的影响。'

[ERROR] (http.py:73)_handle_response [botpy] 接口请求异常,请求连接: https://api.sgroup.qq.com/channels/530103214/messages, 错误代码: 501, 返回内容: None, trace_id:None
Traceback (most recent call last):
File "/home/workspace/gptbot/env/lib/python3.9/site-packages/botpy/client.py", line 279, in _run_event
await coro(*args, **kwargs)
File "/home/workspace/bot/qqbot.py", line 148, in on_at_message_create
await message.reply(content= content,message_reference=message_reference)
File "/home/workspace/gptbot/env/lib/python3.9/site-packages/botpy/message.py", line 84, in reply
return await self._api.post_message(channel_id=self.channel_id, msg_id=self.id, **kwargs)
File "/home/workspace/gptbot/env/lib/python3.9/site-packages/botpy/api.py", line 508, in post_message
return await self._http.request(route, json=payload)
File "/home/workspace/gptbot/env/lib/python3.9/site-packages/botpy/http.py", line 186, in request
return await _handle_response(response)
File "/home/workspace/gptbot/env/lib/python3.9/site-packages/botpy/http.py", line 82, in _handle_response
raise ServerError(message) from None # adding from None to prevent chain exception being raised
botpy.errors.ServerError: None

当post_message 接口 content内容里有 单引号 括号 这种符号的时候 就501报错。。。。

创建连接提交身份认证返回 op9 false

提交数据为
{"op":2,"d":{"token":"QQBot DcfzfIC9CZqL3NAnMXi-aiNvLk97rLDg7TuSUSioFSH8davP66U93tJZbmjyZjFHQ7-4NrpVvpWQ","intents":513,"shard":[0,1],"properties":{"$os":"linux","$browser":"1","$device":"1"}}}

返回{"op":9,"d":false}

前台启动没问题,但nohup时无法正常使用

环境:Ubuntu20.04 LTS
前台启动命令:python3 route_bot.py
后台启动命令:nohup python3 route_bot.py &

我在使用前台启动命令时,频道机器人是能够正常访问并输出结果的,证明我的代码并没有问题。
但在使用nohup命令将该程序启动时,频道机器人无法正常输出结果,且查看nohup命令结果如下:
'''
[INFO] (client.py:159)_bot_login [botpy] 登录机器人账号中...
[INFO] (client.py:178)_bot_init [botpy] 程序启动...
[INFO] (connection.py:59)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1
[INFO] (client.py:236)bot_connect [botpy] 会话启动中...
[INFO] (gateway.py:110)ws_connect [botpy] 启动中...
[INFO] (gateway.py:136)ws_identify [botpy] 鉴权中...
[INFO] (gateway.py:80)on_message [botpy] 机器人「路线bot」启动成功!
[INFO] (gateway.py:217)_send_heart [botpy] 心跳维持启动...
[ERROR] (http.py:73)_handle_response [botpy] 接口请求异常,请求连接: https://api.sgroup.qq.com/channels/633600421/messages, 错误代码: 500, 返回内容: {'message': 'internal error', 'code': 102}, trace_id:b2f1b2bee7870754fa7a3edab3e1e150
'''
如该日志所示,报了500错误并且102的code,我尝试了不下10次都是同样的结果,请问这个问题该怎么解决?

QQ频道*扰问题

频道内管理人员无权获取用户的QQ号码,也无法通过QQ号码踢出或封禁特定成员。
已经遇到过因为大量重名导致无法踢出*扰用户的成员的问题,致使频道内多名女性私信收到了*扰视频,请问作为频道管理者应当如何处理该问题?

如何获取API文档?

我想使用typescript开发机器人,但是在docs/develop下无法找到相关文档,且其他文档中关于基础API的链接均已失效,目前在历史提交中只能找到ec49252这次关于基础API最后一次提交(下一次提交已移除api目录)。请问如何获取最新的api文档?

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.