Skip to main content

a send msg tools

Project description

x NoneBotPluginLogo

NoneBotPluginText

nonebot-plugin-sendmsg-by-bots

✨ NoneBot 多bot发送消息 ✨

license pypi python

📖 介绍

让连接的每个bot发送消息,如无好友或群则跳过

💿 安装

使用 pip 安装
pip install nonebot-plugin-sendmsg-by-bots
使用 conda 安装
conda install nonebot-plugin-sendmsg-by-bots

🎉 使用

指令表

from nonebot_plugin_sendmsg_by_bots import tools
# 发送群消息:
await tools.send_group_msg_by_bots(group_id: int,node_msg: Message|MessageSegment|str)
# 发送群合并消息:
await tools.send_group_forward_msg_by_bots(group_id: int,node_msg: list)
# 发送私聊消息:
await tools.send_private_msg_by_bots(user_id: int,msg: Message|MessageSegment|str)
# 发送私聊合并消息:
await tools.send_private_forward_msg_by_bots(user_id: int,msg: list)

# group_id : 群号
# user_id : 好友qq号
# node_msg : 合并转发消息列表
# msg : 消息

# 发送成功会返回True,否则会返回False

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nonebot-plugin-sendmsg-by-bots-0.0.4.tar.gz (2.4 kB view hashes)

Uploaded Source

Built Distribution

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page