Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 of 9 tasks
Vylpes opened this issue Nov 8, 2024 · 3 comments
Open
1 of 9 tasks

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

Vylpes opened this issue Nov 8, 2024 · 3 comments
Assignees
Labels
Milestone

Comments

@Vylpes
Copy link
Owner

Vylpes commented Nov 8, 2024

  • 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
@Vylpes Vylpes added the story label Nov 8, 2024
@github-project-automation github-project-automation bot moved this to Planning in VylBot Nov 8, 2024
@Vylpes Vylpes added this to the 3.2.4 milestone Nov 8, 2024
@Vylpes Vylpes moved this from Planning to To Do in VylBot Nov 9, 2024
@Vylpes Vylpes self-assigned this Nov 15, 2024
@Vylpes
Copy link
Owner Author

Vylpes commented Nov 15, 2024

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

@Vylpes
Copy link
Owner Author

Vylpes commented Nov 15, 2024

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

@Vylpes
Copy link
Owner Author

Vylpes commented Nov 15, 2024

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 Vylpes moved this from To Do to In Progress in VylBot Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: In Progress
Development

No branches or pull requests

1 participant