MCPcopy Index your code
hub / github.com/AstrBotDevs/AstrBot / _new_command_conflict

Method _new_command_conflict

astrbot/core/db/sqlite.py:1336–1358  ·  view source on GitHub ↗
(
        conflict_key: str,
        handler_full_name: str,
        plugin_name: str,
        *,
        status: str | None = None,
        resolution: str | None = None,
        resolved_command: str | None = None,
        note: str | None = None,
        extra_data: dict | None = None,
        auto_generated: bool | None = None,
    )

Source from the content-addressed store, hash-verified

1334
1335 @staticmethod
1336 def _new_command_conflict(
1337 conflict_key: str,
1338 handler_full_name: str,
1339 plugin_name: str,
1340 *,
1341 status: str | None = None,
1342 resolution: str | None = None,
1343 resolved_command: str | None = None,
1344 note: str | None = None,
1345 extra_data: dict | None = None,
1346 auto_generated: bool | None = None,
1347 ) -> CommandConflict:
1348 return CommandConflict(
1349 conflict_key=conflict_key,
1350 handler_full_name=handler_full_name,
1351 plugin_name=plugin_name,
1352 status=status or "pending",
1353 resolution=resolution,
1354 resolved_command=resolved_command,
1355 note=note,
1356 extra_data=extra_data,
1357 auto_generated=bool(auto_generated),
1358 )
1359
1360 async def get_command_configs(self) -> list[CommandConfig]:
1361 async with self.get_db() as session:

Callers 1

_opMethod · 0.95

Calls 1

CommandConflictClass · 0.90

Tested by

no test coverage detected