diff --git a/rpgpack/commands/dndinfo.py b/rpgpack/commands/dndinfo.py index f7176c2e..c1a1f6c9 100644 --- a/rpgpack/commands/dndinfo.py +++ b/rpgpack/commands/dndinfo.py @@ -13,8 +13,6 @@ class DndinfoCommand(Command): tables = {DndCharacter, DndActiveCharacter} async def run(self, args: CommandArgs, data: CommandData) -> None: - author = await data.get_author(error_if_none=True) - active_character = await get_active_character(data) char = active_character.character diff --git a/rpgpack/tables/dndbattle.py b/rpgpack/tables/dndbattle.py new file mode 100644 index 00000000..12b5ae63 --- /dev/null +++ b/rpgpack/tables/dndbattle.py @@ -0,0 +1,19 @@ +from sqlalchemy import * +from sqlalchemy.orm import * +from sqlalchemy.ext.declarative import declared_attr + + +class DndBattle: + __tablename__ = "dndbattle" + + @declared_attr + def id(self): + return Column(Integer, primary_key=True) + + @declared_attr + def name(self): + return Column(String, nullable=False) + + @declared_attr + def description(self): + return Column(String, nullable=False) diff --git a/rpgpack/version.py b/rpgpack/version.py index 011f319b..89550946 100644 --- a/rpgpack/version.py +++ b/rpgpack/version.py @@ -1,2 +1 @@ -semantic = "5.1.4" - +semantic = "5.2"