Ethan Lane
cdf689f1c5
All checks were successful
Test / build (push) Successful in 13s
- Add command to configure the auto kick function - Added ability to run functions on a cron job - Added a cron job every hour to check if a user has had a role for a configured amount of time and kick them if they have - The function also optionally sends a notice embed at a configured time before the kick #485 Reviewed-on: #502 Reviewed-by: VylpesTester <tester@vylpes.com> Co-authored-by: Ethan Lane <ethan@vylpes.com> Co-committed-by: Ethan Lane <ethan@vylpes.com>
10 lines
295 B
SQL
10 lines
295 B
SQL
CREATE TABLE auto_kick_config (
|
|
Id varchar(255) NOT NULL,
|
|
WhenCreated datetime NOT NULL,
|
|
WhenUpdated datetime NOT NULL,
|
|
ServerId varchar(255) NOT NULL,
|
|
RoleId varchar(255) NOT NULL,
|
|
KickTime int NOT NULL,
|
|
NoticeTime int NULL,
|
|
NoticeChannelId varchar(255) NULL
|
|
);
|