update
This commit is contained in:
parent
406f2ee473
commit
d66bde68d8
6 changed files with 7 additions and 8 deletions
|
@ -307,7 +307,7 @@ pip install -r requirements.txt
|
|||
|
||||
`matrix_homeserver =` - 填写您使用的 Matrix server URL(只包括协议与主机,最后无需添加`/`)。
|
||||
|
||||
`matrix_user =` - 填写机器人的 [用户ID](https://spec.matrix.org/v1.7/appendices/#user-identifiers)(包括`@`与`:`)。
|
||||
`matrix_user =` - 填写机器人的[用户ID](https://spec.matrix.org/v1.7/appendices/#user-identifiers)(包括`@`与`:`)。
|
||||
|
||||
`matrix_token =` - 填写机器人任意设备的 Access Token。
|
||||
|
||||
|
|
|
@ -171,7 +171,7 @@ docker pull bakabaka9/akari-bot:latest
|
|||
|
||||
`matrix_homeserver =` - 填写您使用的 Matrix server URL(只包括协议与主机,最后无需添加`/`)。
|
||||
|
||||
`matrix_user =` - 填写机器人的 [用户ID](https://spec.matrix.org/v1.7/appendices/#user-identifiers)(包括`@`与`:`)。
|
||||
`matrix_user =` - 填写机器人的[用户ID](https://spec.matrix.org/v1.7/appendices/#user-identifiers)(包括`@`与`:`)。
|
||||
|
||||
`matrix_token =` - 填写机器人任意设备的 Access Token。
|
||||
|
||||
|
|
|
@ -7,11 +7,10 @@ from core.utils.http import get_url
|
|||
from core.component import module
|
||||
from typing import Any, Dict
|
||||
|
||||
ip = module('ip', desc='{ip.help.desc}',
|
||||
developers=['Dianliang233'])
|
||||
ip = module('ip', developers=['Dianliang233'])
|
||||
|
||||
|
||||
@ip.handle('<ip>')
|
||||
@ip.handle('<ip>', desc='{ip.help}')
|
||||
async def _(msg: Bot.MessageSession, ip: str):
|
||||
try:
|
||||
ipaddress.ip_address(ip)
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"ip.help.desc": "Query the information of IP.",
|
||||
"ip.help": "Query the information of IP.",
|
||||
"ip.message.asn": "ASN: ",
|
||||
"ip.message.error.unknown": "发生错误:无效的 IP 地址,请检查输入。",
|
||||
"ip.message.ip_property": " Address",
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"ip.help.desc": "查询 IP 信息。",
|
||||
"ip.help": "查询 IP 信息。",
|
||||
"ip.message.asn": "ASN:",
|
||||
"ip.message.error.unknown": "发生错误:无效的 IP 地址,请检查输入。",
|
||||
"ip.message.ip_property": "地址",
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"ip.help.desc": "查詢 IP 訊息。",
|
||||
"ip.help": "查詢 IP 訊息。",
|
||||
"ip.message.asn": "ASN:",
|
||||
"ip.message.error.unknown": "發生錯誤:無效的 IP 位址,請校對輸入。",
|
||||
"ip.message.ip_property": "位址",
|
||||
|
|
Reference in a new issue