feat: Data and client framework
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user