Archived
1
0
Fork 0
This commit is contained in:
多羅狼 2023-08-14 22:05:56 +08:00 committed by GitHub
parent 406f2ee473
commit d66bde68d8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 7 additions and 8 deletions

View file

@ -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。

View file

@ -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。

View file

@ -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)

View file

@ -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",

View file

@ -1,5 +1,5 @@
{
"ip.help.desc": "查询 IP 信息。",
"ip.help": "查询 IP 信息。",
"ip.message.asn": "ASN",
"ip.message.error.unknown": "发生错误:无效的 IP 地址,请检查输入。",
"ip.message.ip_property": "地址",

View file

@ -1,5 +1,5 @@
{
"ip.help.desc": "查詢 IP 訊息。",
"ip.help": "查詢 IP 訊息。",
"ip.message.asn": "ASN",
"ip.message.error.unknown": "發生錯誤:無效的 IP 位址,請校對輸入。",
"ip.message.ip_property": "位址",