更换一键脚本的端口,修复托马攻略

This commit is contained in:
CMHopeSunshine 2022-03-24 19:25:18 +08:00
parent 811af552e7
commit 625758ef40
3 changed files with 9 additions and 5 deletions

View File

@ -228,11 +228,11 @@ servers:
- ws-reverse: - ws-reverse:
# 反向WS Universal 地址 # 反向WS Universal 地址
# 注意 设置了此项地址后下面两项将会被忽略 # 注意 设置了此项地址后下面两项将会被忽略
universal: ws://127.0.0.1:80/ws/ universal: ws://127.0.0.1:6660/ws/
# 反向WS API 地址 # 反向WS API 地址
api: ws://127.0.0.1:80/api/ api: ws://127.0.0.1:6660/api/
# 反向WS Event 地址 # 反向WS Event 地址
event: ws://127.0.0.1:80/event/ event: ws://127.0.0.1:6660/event/
# 重连间隔 单位毫秒 # 重连间隔 单位毫秒
reconnect-interval: 3000 reconnect-interval: 3000
middlewares: middlewares:
@ -244,7 +244,7 @@ servers:
Set-Content .\LittlePaimon\hoshino\config\__bot__.py -Value @" Set-Content .\LittlePaimon\hoshino\config\__bot__.py -Value @"
# coding=gbk # coding=gbk
# hoshino监听的端口与ip # hoshino监听的端口与ip
PORT = 80 PORT = 6660
HOST = '127.0.0.1' # 本地部署使用此条配置QQ客户端和bot端运行在同一台计算机 HOST = '127.0.0.1' # 本地部署使用此条配置QQ客户端和bot端运行在同一台计算机
# HOST = '0.0.0.0' # 开放公网访问使用此条配置(不安全) # HOST = '0.0.0.0' # 开放公网访问使用此条配置(不安全)

View File

@ -1,5 +1,6 @@
blue={ blue={
'胡桃': ['', (0, 2420)], '胡桃': ['', (0, 1886)],
'托马': ['', (1886, 2420)],
'宵宫': ['', (2420, 2955)], '宵宫': ['', (2420, 2955)],
'烟绯': ['', (2955, 3492)], '烟绯': ['', (2955, 3492)],
'可莉': ['', (3492, 4029)], '可莉': ['', (3492, 4029)],

View File

@ -110,6 +110,9 @@ async def my_characters(bot,ev):
if not uid: if not uid:
await bot.send(ev,'请把uid给派蒙哦比如ysc100000001 钟离',at_sender=True) await bot.send(ev,'请把uid给派蒙哦比如ysc100000001 钟离',at_sender=True)
return return
if len(uid) != 9 or not uid.isdigit():
await bot.send(ev,f'uid {uid} 不合规,是不是打错了呀',at_sender=True)
return
cookie = await get_cookie(qq, uid) cookie = await get_cookie(qq, uid)
update_last_query_to_qq(qq, uid) update_last_query_to_qq(qq, uid)
if not cookie: if not cookie: