summaryrefslogtreecommitdiff
path: root/AyaBot/plugins
diff options
context:
space:
mode:
authorKyomotoi <[email protected]>2020-07-07 11:11:24 +0800
committerGitHub <[email protected]>2020-07-07 11:11:24 +0800
commit1dfaebb282eeeda813c6e42a876fcffb313ccdce (patch)
tree753e7859fb2e36bdf44125eba33b5cc184243c72 /AyaBot/plugins
parent6564229e6788e733ca5fd01e67be1d4b06843fbe (diff)
downloadATRI-1dfaebb282eeeda813c6e42a876fcffb313ccdce.tar.gz
ATRI-1dfaebb282eeeda813c6e42a876fcffb313ccdce.tar.bz2
ATRI-1dfaebb282eeeda813c6e42a876fcffb313ccdce.zip
Update weather.py
Diffstat (limited to 'AyaBot/plugins')
-rw-r--r--AyaBot/plugins/weather.py5
1 files changed, 1 insertions, 4 deletions
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