Initial commit

This commit is contained in:
2026-02-23 22:48:25 +00:00
commit b8182ead88
46 changed files with 1845 additions and 0 deletions

1
Bot/bot/__init__.py Normal file
View File

@@ -0,0 +1 @@
from .post import * # noqa

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

24
Bot/bot/post.py Normal file
View File

@@ -0,0 +1,24 @@
from pathlib import Path
from sqlitewrapper import Model, Datatype, Row
__all__ = (
'Datatype',
'Posts',
'Row',
)
class Posts(Model):
def __init__(self, db_name: str, save_path: Path) -> None:
self.__table = {
'username': Datatype.STR,
'title': Datatype.STR,
'text': Datatype.STR,
'post_id': Datatype.STR,
'deletion_method': Datatype.STR,
'post_last_edit': Datatype.STR,
'record_created': Datatype.STR,
'record_edited': Datatype.STR,
}
super().__init__(db_name, save_path, **self.__table)