Modernized codebase with NamedTuples, StrEnum, override decorators, slots, and other idiomatic improvements.
CI / Formatting (push) Successful in 4s
CI / Linting (push) Successful in 5s
CI / Tests (push) Successful in 21s
CI / Type Checking (push) Successful in 10s
CI / Spelling (push) Successful in 5s

This commit is contained in:
2026-03-22 20:02:31 -04:00
parent a23d252f27
commit 23cc721612
12 changed files with 155 additions and 91 deletions
+2 -2
View File
@@ -26,7 +26,7 @@ from crabstero import metrics
from crabstero.messages import ingest_message
if TYPE_CHECKING:
from crabstero.bot import Crabstero
from crabstero.bot import Crabstero, IngestableChannel
from crabstero.database import Database
MAXIMUM_MESSAGES_PER_CHANNEL = (
@@ -48,7 +48,7 @@ def queue_channels_for_ingestion(guild: discord.Guild, bot: Crabstero) -> None:
async def ingest_channel(
channel: discord.TextChannel | discord.VoiceChannel,
channel: IngestableChannel,
db: Database,
) -> None:
"""Bulk-ingest the message history of a given channel.