activity ======== .. py:module:: sidequest_common.models.activity .. autoapi-nested-parse:: Hourly per-member activity counts, for server stats and Hall of Heroes profile charts. .. py:class:: MemberActivityHour Bases: :py:obj:`advanced_alchemy.base.UUIDAuditBase` One member's activity in one UTC hour. ``messages`` is XP-eligible chat messages (what the bot sends to the chat-XP route), bumped once per ``award_xp`` call regardless of whether XP was actually paid. ``voice_minutes`` is minutes present under the stats voice rule (any voice/stage channel but the guild's AFK channel, with at least two non-bot members), looser than and separate from the voice-XP rule; it is recorded even while leveling is disabled. ``chat_xp``/``voice_xp`` are the XP actually awarded that hour, which can be less than a full award (or zero) when leveling was off or the chat cooldown was active. .. py:attribute:: guild_id :type: sqlalchemy.orm.Mapped[int] .. py:attribute:: user_id :type: sqlalchemy.orm.Mapped[int] .. py:attribute:: hour_start :type: sqlalchemy.orm.Mapped[datetime.datetime] .. py:attribute:: messages :type: sqlalchemy.orm.Mapped[int] .. py:attribute:: voice_minutes :type: sqlalchemy.orm.Mapped[int] .. py:attribute:: chat_xp :type: sqlalchemy.orm.Mapped[int] .. py:attribute:: voice_xp :type: sqlalchemy.orm.Mapped[int]