mirror of
https://github.com/RustyRaptor/doge_cogs.git
synced 2026-12-03 15:55:21 -07:00
Guesses now see what's normal on the server: a weekly cached baseline from 24 random moments in the public channels (per-regular style numbers, message shares, and a model-written culture summary from anonymised conversations), and how the person compares with the regulars. `alignment baseline` rebuilds and shows it; ALIGNMENT_BASELINE=off turns it off. Each person's time zone comes from aikaterna's timezone cog (read from its Config); Mountain Time otherwise. The dossier adds nickname, custom status and roles, since bots can't read the About me bio. scripts/experiments holds the harnesses and results: the baseline moved Chaotic Neutral from 9/10 to 8/10; per-axis scores didn't repeat between identical asks, so relative ranking of scores was dropped. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GUebqhE8dK19vyn4Ct5g1L
37 lines
1.6 KiB
Python
37 lines
1.6 KiB
Python
"""Red cog: a server's D&D alignment chart.
|
|
|
|
The cog itself (:mod:`.cog`) is a thin Discord front end on :mod:`.core`, which
|
|
knows nothing about Discord. Red is only imported when Red loads the cog, so
|
|
``doge_alignment.core`` and the command line (``python -m doge_alignment``)
|
|
work without it.
|
|
"""
|
|
|
|
from typing import TYPE_CHECKING
|
|
|
|
if TYPE_CHECKING:
|
|
from redbot.core.bot import Red
|
|
|
|
__red_end_user_data_statement__ = (
|
|
"This cog stores your alignment, display name and avatar URL for "
|
|
"each server's chart, whether you are an alignment admin there, "
|
|
"pending alignment suggestions for and by you, and whether you "
|
|
"allow guesses. `alignment guess` sends random stretches of your "
|
|
"messages in a server, the conversations around them (other "
|
|
"people anonymised), your posting pattern, nickname, custom "
|
|
"status, roles and avatar to the bot owner's own language model; "
|
|
"nothing from it is stored. For comparison, each server keeps an "
|
|
"anonymous baseline built from random messages in its public "
|
|
"channels: style numbers per regular (no names or ids) and a "
|
|
"model-written summary of the server's culture. "
|
|
"`alignment guessing false` blocks guesses about you and hides "
|
|
"your words when others are guessed, `alignment remove` takes you"
|
|
" off a chart, and Red's data deletion removes you everywhere."
|
|
)
|
|
|
|
|
|
async def setup(bot: "Red") -> None:
|
|
"""Red's entry point."""
|
|
from .cog import AlignmentCog # noqa: PLC0415 (keep Red out of core)
|
|
|
|
await bot.add_cog(AlignmentCog(bot))
|