Skip to content

Commit c69b013

Browse files
authored
Merge pull request #345 from rHomelab/fix/report
2 parents bfcb8b5 + 810dfdd commit c69b013

2 files changed

Lines changed: 245 additions & 41 deletions

File tree

README.md

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -376,11 +376,24 @@ This cog will allow members to send a report into a channel where it can be revi
376376

377377
The `report` and `emergency` commands have cooldowns defined; if a user attempts to use one of these commands more than once within a 30 second period, they will be rate limited and receive a message informing them of this.
378378

379-
- `[p]reports confirmation <true|false>` - Sets whether the bot will send users a confirmation/copy of their report.
379+
#### Emergency Reports
380+
381+
When a user triggers the emergency command, the bot will mention all online/idle users in the log channel with the user's report. The following conditions apply:
382+
383+
* If no users in the log channel are online/idle, the cog will fall back to mentioning all non-bot users.
384+
* No number of users greather than the value of the `maxmentions` setting will be mentioned. The order of mentions is not guaranteed, so who is/isn't mentioned under this condition may be unpredictable.
385+
386+
#### Configuration Commands
387+
388+
- `[p]reports confirmation <true|false>` - Sets whether the bot will DM users a confirmation/copy of their report. Confirmations are always provided when the slash command is used.
380389
- `[p]reports logchannel #admin-log` - Set the channel to which reports will be sent. ⚠️ The cog will not function without this.
390+
- `[p]reports maxmentions <number>` - Set the maximum number of users to mention in emergency reports (1-100, default: 20).
381391
- `[p]reports status` - Output the cog's configuration status.
392+
393+
#### User Commands
394+
382395
- `[p]report <message>` - Sends a report with the given message.
383-
- `[p]emergency <message>` - Sends a report with the given message, mentioning (@'ing) all users in the configured `logchannel` who are in either an online or idle state.
396+
- `[p]emergency <message>` - Sends a high-priority report with the given message, mentioning (@'ing) users in the configured `logchannel` who are in either an online or idle state.
384397

385398
> [!TIP]
386399
> The `report` and `emergency` commands are also implemented as slash commands.

0 commit comments

Comments
 (0)