mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2025-12-15 06:12:53 +08:00
word_bank执行添加to_me字段
This commit is contained in:
parent
42683e4f09
commit
e4dec9f0de
@ -71,7 +71,9 @@ async def _():
|
||||
)
|
||||
async def _():
|
||||
img = image(IMAGE_PATH / "zhenxun" / "sleep.jpg")
|
||||
await broadcast_group("[[_task|zwa]]{NICKNAME}要睡觉了,你们也要早点睡呀" + img, log_cmd="被动早晚安")
|
||||
await broadcast_group(
|
||||
f"[[_task|zwa]]{NICKNAME}要睡觉了,你们也要早点睡呀" + img, log_cmd="被动早晚安"
|
||||
)
|
||||
logger.info("每日晚安发送")
|
||||
|
||||
|
||||
|
||||
@ -12,7 +12,7 @@ from nonebot.adapters.onebot.v11 import (
|
||||
)
|
||||
from nonebot.internal.adapter.template import MessageTemplate
|
||||
from tortoise import Tortoise, fields
|
||||
from tortoise.expressions import Q, RawSQL
|
||||
from tortoise.expressions import Q
|
||||
|
||||
from configs.path_config import DATA_PATH
|
||||
from services.db_context import Model
|
||||
@ -496,3 +496,8 @@ class WordBank(Model):
|
||||
create_time=datetime.now().replace(microsecond=0),
|
||||
update_time=datetime.now().replace(microsecond=0),
|
||||
)
|
||||
|
||||
@classmethod
|
||||
async def _run_script(cls):
|
||||
await cls.raw("ALTER TABLE word_bank2 ADD to_me varchar(255);")
|
||||
"""允许 user_join_time 为空"""
|
||||
|
||||
Loading…
Reference in New Issue
Block a user