天气查询结果
-{{ timestamp }}
-diff --git a/config.toml b/config.toml index cb60f44..25c55be 100644 --- a/config.toml +++ b/config.toml @@ -19,7 +19,7 @@ token = "" # Bot 基础配置 [bot] # 命令前缀列表 -command = ["/"] +command = ["。"] # 是否忽略自己的消息 ignore_self_message = true # 权限不足时的消息 diff --git a/plugins/weather.py b/plugins/weather.py index 445b1f6..ded39b0 100644 --- a/plugins/weather.py +++ b/plugins/weather.py @@ -186,7 +186,7 @@ async def handle_weather(bot, event: MessageEvent, args: List[str]): try: # 渲染HTML模板为图片 base64_image = await image_manager.render_template_to_base64( - "weather.html", weather_info, output_name="weather.png", width=1080 + "weather.html", weather_info, output_name="weather.png", width=400, height=500 ) if base64_image: diff --git a/templates/weather.html b/templates/weather.html index 6576f55..8ef9578 100644 --- a/templates/weather.html +++ b/templates/weather.html @@ -4,23 +4,16 @@
{{ timestamp }}
-