diff options
Diffstat (limited to 'AyaBot/plugins/mojang.py')
-rw-r--r-- | AyaBot/plugins/mojang.py | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/AyaBot/plugins/mojang.py b/AyaBot/plugins/mojang.py index 61a7dab..f7c4f35 100644 --- a/AyaBot/plugins/mojang.py +++ b/AyaBot/plugins/mojang.py @@ -1,6 +1,4 @@ import json -import base64 -import nonebot import requests from mcstatus import MinecraftServer from nonebot import on_command, CommandSession @@ -14,16 +12,16 @@ async def _(session: CommandSession): if ip == '南外手艺': ip = str('mc.nflsedition.com:26164') - + elif ip == 'hypixel': ip = str('mc.hypixel.net') elif ip == 'shotbow': ip = str('us.shotbow.net') - + elif ip == 'potterworld': ip = str('potterworldmc.com') - + else: pass @@ -57,4 +55,4 @@ async def check_mc_id(session: CommandSession): await session.send(f'{player}可能为非正版玩家,无法查询到其信息') except: - await session.send('mojang似乎炸了...等一会吧')
\ No newline at end of file + await session.send('mojang似乎炸了...等一会吧') |