Interactive mode done

This commit is contained in:
Richard Chien
2018-06-25 15:22:59 +08:00
parent 492fed9b50
commit 77db6bfc84
3 changed files with 162 additions and 93 deletions

View File

@ -6,7 +6,8 @@ from none.helpers import send
@none.on_command('weather', aliases=('天气',))
async def weather(bot, session: Session):
city = session.require_arg('city', prompt='你想知道哪个城市的天气呢?')
await send(bot, session.ctx, f'你查询了{city}的天气')
other = session.require_arg('other')
await send(bot, session.ctx, f'你查询了{city}的天气,{other}')
@weather.args_parser