mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2026-09-29 00:32:06 +08:00
gold_readbag and russian
This commit is contained in:
+4
-3
@@ -6,7 +6,10 @@ from util.init_result import share
|
||||
from services.log import logger
|
||||
|
||||
|
||||
__plugin_usage__ = '用法:\n格式:网址 标题 内容(可省略) 图片(可省略)\n示例:假消息 www.4399.com 我喜欢萝莉 为什么我喜欢... (图片)'
|
||||
__plugin_name = '假消息'
|
||||
|
||||
__plugin_usage__ = '用法:\n格式:假消息 [网址] [标题] [内容](可省) [图片](可省)\n' \
|
||||
'示例:假消息 www.4399.com 我喜欢萝莉 为什么我喜欢... [图片]'
|
||||
|
||||
|
||||
fake_msg = on_command('假消息', priority=5, block=True)
|
||||
@@ -16,8 +19,6 @@ fake_msg = on_command('假消息', priority=5, block=True)
|
||||
async def _(bot: Bot, event: MessageEvent, state: T_State):
|
||||
msg = get_message_text(event.json()).split(' ')
|
||||
img = get_message_imgs(event.json())
|
||||
if not msg or msg in ['帮助']:
|
||||
await fake_msg.finish(__plugin_usage__)
|
||||
if len(msg) > 1:
|
||||
if len(msg) == 2:
|
||||
url = msg[0]
|
||||
|
||||
Reference in New Issue
Block a user