Mode to auto kick someone that has had a role for 24 hours #485

Open
opened 2024-10-19 16:43:18 +01:00 by Vylpes · 7 comments
Owner
  • Plan
  • Plan tests
  • Implement
    • Create command to edit config
    • Add database entity to track roles
    • Add hook to log when a user was given a role
    • Add ability to run background tasks on a timer
    • Create timer
  • Test
- [x] Plan - [x] Plan tests - [ ] Implement - [ ] Create command to edit config - [ ] Add database entity to track roles - [ ] Add hook to log when a user was given a role - [ ] Add ability to run background tasks on a timer - [ ] Create timer - [ ] Test
Vylpes added this to the 3.2.4 milestone 2024-10-19 16:43:18 +01:00
Vylpes added the
type
change
label 2024-10-19 16:43:24 +01:00
Author
Owner

Do we want a reminder notification sent a couple hours before they're due to be kicked?

Do we want a reminder notification sent a couple hours before they're due to be kicked?
Vylpes added the
question
label 2024-10-19 17:10:45 +01:00
Author
Owner

Do we want a reminder notification sent a couple hours before they're due to be kicked?

A reminder would be good

> Do we want a reminder notification sent a couple hours before they're due to be kicked? A reminder would be good
Vylpes removed the
question
label 2024-10-20 11:16:34 +01:00
Vylpes added this to the 3.3 Sprint 6 project 2024-10-29 09:58:51 +00:00
Author
Owner

Make the time configurable

Make the time configurable
Vylpes self-assigned this 2024-11-15 17:48:57 +00:00
Vylpes started working 2024-11-15 17:50:07 +00:00
Author
Owner

Command Parameters

Name Type Required Notes
Role Role Yes
KickTime String Yes The time until kick, formatted as a time span
NoticeTime String No The time before kicking when a notice is sent, formatted as a time span
NoticeChannel Channel No The channel to send the notice into

Database Entity

Name Type Nullable Notes
Id UUID No Primary Key
WhenCreated DateTime No
WhenUpdated DateTime No
ServerId String No
RoleId String No
KickTime int No The time in milliseconds to kick after gaining role, or since joining
NoticeTime int Yes The time in milliseconds to send notice before KickTime
NoticeChannelId String Yes The channel id where the notice will be sent
## Command Parameters | Name | Type | Required | Notes | | ------------- | ------- | -------- | ----------------------------------------------------------------------- | | Role | Role | Yes | | | KickTime | String | Yes | The time until kick, formatted as a time span | | NoticeTime | String | No | The time before kicking when a notice is sent, formatted as a time span | | NoticeChannel | Channel | No | The channel to send the notice into | ## Database Entity | Name | Type | Nullable | Notes | | --------------- | -------- | -------- | --------------------------------------------------------------------- | | Id | UUID | No | Primary Key | | WhenCreated | DateTime | No | | | WhenUpdated | DateTime | No | | | ServerId | String | No | | | RoleId | String | No | | | KickTime | int | No | The time in milliseconds to kick after gaining role, or since joining | | NoticeTime | int | Yes | The time in milliseconds to send notice before KickTime | | NoticeChannelId | String | Yes | The channel id where the notice will be sent |
Author
Owner

Can I in the discord api check when a user was given a role?

Can I in the discord api check when a user was given a role?
Author
Owner

Can I in the discord api check when a user was given a role?

Doesn't look like it, so will need to store this myself

> Can I in the discord api check when a user was given a role? Doesn't look like it, so will need to store this myself
Vylpes stopped working 2024-11-15 18:14:52 +00:00
24 minutes 45 seconds
Vylpes started working 2024-11-23 17:48:46 +00:00
Author
Owner
No description provided.
Vylpes stopped working 2024-11-23 17:59:33 +00:00
10 minutes 47 seconds
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Total time spent: 35 minutes 32 seconds
Vylpes
35 minutes 32 seconds
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: RabbitLabs/vylbot-app#485
No description provided.