activity#
Hourly per-member activity counts, for server stats and Hall of Heroes profile charts.
- class sidequest_common.models.activity.MemberActivityHour[source]#
Bases:
advanced_alchemy.base.UUIDAuditBaseOne member’s activity in one UTC hour.
messagesis XP-eligible chat messages (what the bot sends to the chat-XP route), bumped once peraward_xpcall regardless of whether XP was actually paid.voice_minutesis 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_xpare 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.- guild_id: sqlalchemy.orm.Mapped[int]#
- user_id: sqlalchemy.orm.Mapped[int]#
- hour_start: sqlalchemy.orm.Mapped[datetime.datetime]#
- messages: sqlalchemy.orm.Mapped[int]#
- voice_minutes: sqlalchemy.orm.Mapped[int]#
- chat_xp: sqlalchemy.orm.Mapped[int]#
- voice_xp: sqlalchemy.orm.Mapped[int]#