From 431f7ff2f1d84f781e75f33928d26c4409e41fe3 Mon Sep 17 00:00:00 2001 From: Kyomotoi <37587870+Kyomotoi@users.noreply.github.com> Date: Tue, 7 Jul 2020 11:04:56 +0800 Subject: Update mojang.py --- AyaBot/plugins/mojang.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'AyaBot/plugins') diff --git a/AyaBot/plugins/mojang.py b/AyaBot/plugins/mojang.py index 6026daf..4f5ee28 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 @@ -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似乎炸了...等一会吧') -- cgit v1.2.3 From 6564229e6788e733ca5fd01e67be1d4b06843fbe Mon Sep 17 00:00:00 2001 From: Kyomotoi <37587870+Kyomotoi@users.noreply.github.com> Date: Tue, 7 Jul 2020 11:06:05 +0800 Subject: Update mojang.py --- AyaBot/plugins/mojang.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'AyaBot/plugins') diff --git a/AyaBot/plugins/mojang.py b/AyaBot/plugins/mojang.py index 4f5ee28..81cb2d4 100644 --- a/AyaBot/plugins/mojang.py +++ b/AyaBot/plugins/mojang.py @@ -12,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 -- cgit v1.2.3 From 1dfaebb282eeeda813c6e42a876fcffb313ccdce Mon Sep 17 00:00:00 2001 From: Kyomotoi <37587870+Kyomotoi@users.noreply.github.com> Date: Tue, 7 Jul 2020 11:11:24 +0800 Subject: Update weather.py --- AyaBot/plugins/weather.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'AyaBot/plugins') diff --git a/AyaBot/plugins/weather.py b/AyaBot/plugins/weather.py index 69daa71..bfb4e58 100644 --- a/AyaBot/plugins/weather.py +++ b/AyaBot/plugins/weather.py @@ -1,9 +1,6 @@ # -*- coding:utf-8 -*- -import os -import re import json import requests -from os import path from nonebot import on_command, CommandSession from AyaBot.plugins.module import google_translate @@ -215,4 +212,4 @@ async def _(session: CommandSession): if not stripped_arg: session.pause('要查询的城市不能为空,请重新输入') - session.state[session.current_key] = stripped_arg \ No newline at end of file + session.state[session.current_key] = stripped_arg -- cgit v1.2.3