Module nonebot_plugin_marshoai.tools.marshoai_basic
async func get_weather(location: str)
Source code or View on GitHub
python
async def get_weather(location: str):
return f'{location}的温度是114514℃。'
async func get_current_env()
Source code or View on GitHub
python
async def get_current_env():
ver = os.popen('uname -a').read()
return str(ver)
async func get_current_time()
Source code or View on GitHub
python
async def get_current_time():
current_time = DateTime.now()
return time_prompt.format(date_time=current_time.strftime('%Y年%m月%d日 %H:%M:%S'), weekday_name=weekdays[current_time.weekday()], lunar_date=current_time.to_lunar().date_hanzify('{干支年}{生肖}年{月份}月{日期}日'))