Rewrite weather commands

This commit is contained in:
Richard Chien
2017-01-12 21:59:54 +08:00
parent 5cbbac7155
commit 33fa1f13d8
4 changed files with 199 additions and 4 deletions

View File

@ -65,8 +65,8 @@ def short_url(args_text, ctx_msg):
core.echo('生成失败,可能因为链接格式错误或服务器连接不上', ctx_msg)
@cr.register('weather')
@cr.register('天气', '查天气')
# @cr.register('weather')
# @cr.register('天气', '查天气')
def weather(args_text, ctx_msg):
city = args_text.strip()
if not city: