Activity Streaks
Reward users for being active every day, week, or month with an activity score that resets if they become inactive again.
Recent changes
Features
- Track user activity streaks based on a configurable period (daily, weekly, or monthly).
- Streaks reset to zero if a user becomes inactive for a full period.
- Automatically assign roles as rewards when users reach specific streak milestones.
- Optionally keep only the highest-tier streak role on each user, removing lower tiers automatically as they advance.
- Optionally remove streak roles again when a member loses their streak or drops below a role's threshold.
- Optionally display the current streak count in a user's nickname.
- Staff-managed mode allows moderators to manually add and reset streaks instead of automatic tracking.
- Users can restore a lost streak once per loss (if enabled).
- Longest streak is tracked separately and never resets.
- Leaderboard showing the top 20 active streaks on your server.
- Optional live leaderboard: a message in a channel of your choice that updates itself whenever streaks change.
- Customizable streak emojis, including custom server emojis.
- Users can opt out of displaying their streak in their nickname.
Setup
- Enable the module on your server.
- Open the configuration and select your desired streak period (daily, weekly, or monthly).
- If you want to use streak role rewards, create the roles on your server and configure them in the "Streak Roles" field.
- If you want the streak count to appear in nicknames, enable the "Show streak in nickname" option. Make sure the bot has the
Manage Nicknamespermission. - If you want to use staff-managed mode instead of automatic tracking, enable it and configure the staff roles.
- If you want to change the streak emojis, set "Active streak emoji" and "Broken streak emoji". See Streak emojis.
- If you want a live leaderboard, enable "Live leaderboard enabled?" and select a "Leaderboard channel". See Live leaderboard.
Usage
- In automatic mode, the bot tracks user activity based on messages sent. When a user sends a message during a new period, their streak is incremented. If they miss an entire period, their streak resets to zero.
- In staff-managed mode, staff members use
/streak addto manually add streak points to users. Staff can add streaks to the same member repeatedly, even if the member's activity was already counted in the current period. - Users can view their current and longest streak using
/streak view. - If streak restoration is enabled, users who lost their streak can use
/streak restoreto recover it once. You can optionally set a time limit (in days) after which a lost streak can no longer be restored. Restoring keeps the higher of the current and previous streak, so a member who already started a new streak never loses progress. - When a user reaches a streak count that matches a configured role reward, the role is automatically assigned.
Streak emojis
The emoji shown next to streaks is configurable. "Active streak emoji" (default 🔥) is shown for active streaks, "Broken streak emoji" (default ❄️) is shown when a user has no active streak. Both are used in /streak view, the leaderboards, and the nickname suffix.
You can enter a Unicode emoji or a custom server emoji in the format <:name:123456789012345678>. Discord cannot render custom emojis in nicknames, so the nickname suffix always uses 🔥 instead.
Live leaderboard
When "Live leaderboard enabled?" is turned on, the bot keeps one message in the "Leaderboard channel" that updates itself. It is refreshed whenever a streak changes and about every 5 minutes. Each row shows the rank, the user, the current streak (with the streak emoji), and the longest streak.
- Use "Leaderboard embed" to set the title, color, thumbnail, image, and description.
- "Maximum entries" sets how many users are shown (1 to 25).
- "User Display Mode" controls whether users are shown as tag, mention, or nickname.
- "Use Components V2 Layout" renders the leaderboard with Discord's Components V2 instead of a classic embed.
- "Clear User Messages" deletes messages from other users in the leaderboard channel on every refresh. This requires the bot to have the
Manage Messagespermission in that channel.
Commands
name:<Type> is an option of a slash-command with name name and the type Type. Options that not required, are described as [name:<Type>]. If the action of a command is vastly different between required and not-required options, we might list them separately.Examples
/moderate ban user:<Member>: This command (/moderate ban) has an required option with the name "user" that only accepts one member as a value./moderate ban victim:<Member> reason:<Text>: This command (/moderate ban) has an required option with the name "victim" that only accepts one member as a value and another required option with the name "reason" that accepts any text as an value./moderate ban victim:<Member> reason:<Text> [proof:<Attachment>]: This command (/moderate ban) has an required option with the name "victim" that only accepts one member as a value, another required option with the name "reason" that accepts any text as an value and a not-required option with the name "proof" which allows one attachment as its value.
| Command | Description |
|---|---|
/streak view [user:<User>] | View your own or another user's current and longest streak. |
/streak add user:<User> | Manually add a streak point to a user. Only available in staff-managed mode. Requires a configured staff role. |
/streak remove user:<User> | Subtract one from a user's streak count. Useful for correcting mistakes without fully resetting. Only available in staff-managed mode. Requires a configured staff role. |
/streak reset user:<User> | Fully reset a user's streak, clearing both the current streak and any saved backup, and removing all streak-related roles. Only available in staff-managed mode. Requires a configured staff role. |
/streak restore [user:<User>] | Restore a previously lost streak. Only available if streak restoration is enabled. Can only be used once per streak loss, and only within the configured restore time limit (if one is set). |
/streak leaderboard | Show the top 20 active streaks on the server. Available in both staff-managed and automatic modes. |
/streak hide | Toggle whether your streak is displayed in your nickname. Only available when nickname display is enabled and the "Allow users to hide streak from nickname?" option is turned on. |
View Streak (user context menu) | View a user's streak. Works like /streak view. |
Add Streak (user context menu) | Add to a user's streak. Opens a form asking for the amount. Works like /streak add. Requires a configured staff role and the Moderate Members permission. |
Remove Streak (user context menu) | Subtract one from a user's streak. Works like /streak remove. Requires a configured staff role and the Moderate Members permission. |
Reset Streak (user context menu) | Fully reset a user's streak. Works like /streak reset. Requires a configured staff role and the Moderate Members permission. |
Context menu commands are turned off by default. See Setting up context menu commands to enable them.
Configuration
In this configuration file, you can configure the module. Open it in your dashboard.
| Field | Description |
|---|---|
| Streak Period | How often users must be active to maintain their streak: daily, weekly, or monthly. |
| Active streak emoji | Emoji shown for active streaks. Supports Unicode emojis and custom server emojis (e.g. <:name:123456789012345678>). |
| Broken streak emoji | Emoji shown when a user has no active streak. Supports Unicode emojis and custom server emojis (e.g. <:name:123456789012345678>). |
| Staff Managed | If enabled, streaks are managed manually by staff instead of being tracked automatically from messages. |
| Staff Roles | Roles that are allowed to manage streaks using the add and reset commands. Only applies when staff-managed mode is enabled. |
| Show streak in nickname | If enabled, the bot appends the user's current streak count to their nickname. |
| Allow users to hide streak from nickname? | If enabled, users can use /streak hide to toggle whether their streak is shown in their nickname. Only available when "Show streak in nickname" is enabled. |
| Streak Roles | Role rewards for reaching specific streak milestones. The key is the streak count and the value is the role to assign. |
| Only keep highest streak role | If enabled, lower streak roles are automatically removed when a user reaches a higher streak threshold, so each user only keeps the role for their current tier. If disabled, streak roles stack. |
| Remove streak roles when a streak is lost? | If enabled, streak reward roles are removed when a member loses their streak or their streak drops below a role's threshold. If disabled (default), earned reward roles are kept. |
| Streak View Message | Customize the embed displayed when viewing a streak. |
| Ignored Channels | Channels where messages do not count toward streaks. |
| Ignored Roles | Roles whose members' messages do not count toward streaks. |
| Enable streak restore? | If enabled, users can restore a lost streak once per loss. |
| Roles allowed to restore streaks | Roles that are allowed to use the restore command. If empty, all users can restore. |
| Restore time limit (days) | How many days after losing a streak users can still restore it with /streak restore. Set to 0 for no time limit. Only applies when "Enable streak restore?" is turned on. |
| Live leaderboard enabled? | If enabled, a message that updates itself and shows the streak leaderboard is kept in the leaderboard channel. |
| Leaderboard channel | Channel in which the live streak leaderboard is posted. |
| Leaderboard embed | Change the title, color, thumbnail, image, and description of the leaderboard embed. |
| Maximum entries | How many users are shown on the leaderboard (1 to 25). |
| User Display Mode | How users are displayed on the leaderboard: Tag (default) shows the username, Mention shows a clickable @mention, Nickname shows the server nickname. |
| Use Components V2 Layout | If enabled, the leaderboard is rendered using Discord's Components V2 system instead of a classic embed. |
| Clear User Messages | If enabled, the bot deletes messages from other users in the leaderboard channel every time the leaderboard updates, to keep it clean. Requires the Manage Messages permission. |
Troubleshooting
Streaks are not being tracked
- Make sure staff-managed mode is disabled if you want automatic tracking.
- Verify that the user is not posting in an ignored channel or does not have an ignored role.
- Streak updates are checked once per period - a user only needs to send one message per period.
Nickname is not updating with streak count
- Make sure "Show streak in nickname" is enabled in the configuration.
- Ensure the bot has the
Manage Nicknamespermission. - The bot cannot change the nickname of the server owner due to Discord limitations.
Streak roles are not being assigned
- Verify the streak role rewards are correctly configured with the right streak count and role.
- Ensure the bot has the
Manage Rolespermission and its role is positioned above the reward roles.
The live leaderboard is not appearing or updating
- Make sure "Live leaderboard enabled?" is on and a "Leaderboard channel" is selected.
- Ensure the bot can view the channel, send messages, embed links, and read message history. For "Clear User Messages" it also needs
Manage Messages. - The leaderboard refreshes when streaks change and about every 5 minutes, so changes may take a moment to show.
Stored data
The following data is being stored about every user with an active or previous streak:
- The Discord User ID
- The current streak count and longest streak count
- The last activity date, week, or month (depending on the configured period)
- The previous streak count (for restoration purposes)
- The timestamp of the last restoration
- The timestamp when the streak was last lost (used to enforce the restore time limit)
- Metadata about the entry (date when created and last updated)
To remove all data stored by this module, purge the module database.
Use this on your own Discord server: SCNX runs it for you, so there is nothing to install or host, and you set it up in the dashboard.
Open the dashboard