feat: Data and client framework

This commit is contained in:
2026-05-31 05:05:01 +10:00
parent 19da69b3e8
commit b188abcad0
18 changed files with 643 additions and 313 deletions
+36
View File
@@ -0,0 +1,36 @@
from data import Registry, RowModel, Table
from data.columns import String, Timestamp, Integer, Bool
class CustomCmd(RowModel):
_tablename_ = 'customcmds'
_cache_ = {}
commandid = Integer(primary=True)
communityid = Integer()
name = String()
response = String()
cooldown_bucket_size = Integer()
cooldown_bucket_dur = Integer()
permlevel = Integer()
maskperms = Bool()
creatorid = Integer()
description = String()
docstring = String()
created_at = Timestamp()
_timestamp = Timestamp()
class CustomCmdData(Registry):
VERSION = ('CUSTOMCMD', 1)
customcmds = CustomCmd.table
customcmd_aliases = Table('customcmd_aliases')