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('

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):\n    return f'{location}的温度是114514℃。'

async func get_current_env()

Source code or View on GitHub
python
async def get_current_env():\n    ver = os.popen('uname -a').read()\n    return str(ver)

async func get_current_time()

Source code or View on GitHub
python
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('{干支年}{生肖}{月份}{日期}日'))
',10)]))}const g=i(e,[["render",h]]);export{c as __pageData,g as default};