mirror of
https://github.com/LiteyukiStudio/nonebot-plugin-marshoai.git
synced 2025-08-02 21:09:50 +00:00
增加对公历,农历日期和时间的认知,引入zhDateTime库
This commit is contained in:
14
models.py
Normal file
14
models.py
Normal file
@ -0,0 +1,14 @@
|
||||
from .util import *
|
||||
class MarshoContext:
|
||||
def __init__(self):
|
||||
self.contents = []
|
||||
|
||||
def append(self, content):
|
||||
self.contents.append(content)
|
||||
|
||||
def reset(self):
|
||||
self.contents.clear()
|
||||
|
||||
def build(self):
|
||||
spell = get_default_spell()
|
||||
return [spell] + self.contents
|
Reference in New Issue
Block a user