import{_ as i,c as a,o as t,ae as n}from"./chunks/framework.AELpvxz7.js";const c=JSON.parse('{"title":"index","description":"","frontmatter":{"title":"index","order":100,"collapsed":true},"headers":[],"relativePath":"en/dev/api/tools/marshoai_basic/index.md","filePath":"en/dev/api/tools/marshoai_basic/index.md","lastUpdated":1734175019000}'),e={name:"en/dev/api/tools/marshoai_basic/index.md"};function h(l,s,r,p,k,o){return t(),a("div",null,s[0]||(s[0]=[n('
nonebot_plugin_marshoai.tools.marshoai_basic
get_weather(location: str)
async def get_weather(location: str):\n return f'{location}的温度是114514℃。'
get_current_env()
async def get_current_env():\n ver = os.popen('uname -a').read()\n return str(ver)
get_current_time()
async def get_current_time():\n current_time = DateTime.now()\n 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('{干支年}{生肖}年{月份}月{日期}日'))