设置成功之后,发送一个钉钉的监控群信息
This commit is contained in:
@@ -1,4 +1,6 @@
|
|||||||
|
import os
|
||||||
import re
|
import re
|
||||||
|
from pathlib import Path
|
||||||
from typing import Optional, List, Dict, Any
|
from typing import Optional, List, Dict, Any
|
||||||
from typing import Tuple
|
from typing import Tuple
|
||||||
|
|
||||||
@@ -310,6 +312,14 @@ class JDTokenPlugin(MessagePluginInterface):
|
|||||||
# 设置京东Token
|
# 设置京东Token
|
||||||
result = await self.set_jd_token(token, remark)
|
result = await self.set_jd_token(token, remark)
|
||||||
await bot.send_text_message((roomid if roomid else sender), result, sender)
|
await bot.send_text_message((roomid if roomid else sender), result, sender)
|
||||||
|
|
||||||
|
# 发送二维码图片
|
||||||
|
qrcode_path = Path(os.path.join(os.path.dirname(os.path.abspath(__file__)), "qrcode.png"))
|
||||||
|
if qrcode_path.exists():
|
||||||
|
await bot.send_image_message((roomid if roomid else sender), qrcode_path)
|
||||||
|
else:
|
||||||
|
self.LOG.warning(f"二维码图片不存在: {qrcode_path}")
|
||||||
|
|
||||||
return True, "处理成功"
|
return True, "处理成功"
|
||||||
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|||||||
BIN
plugins/jd_sign_token/qrcode.png
Normal file
BIN
plugins/jd_sign_token/qrcode.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 34 KiB |
Reference in New Issue
Block a user