Skip to content

Commit

Permalink
Merge pull request #202 from zhiyan114/master
Browse files Browse the repository at this point in the history
Logger Deploy
  • Loading branch information
zhiyan114 authored Nov 7, 2024
2 parents 34f60c4 + 061afb0 commit 093d285
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/events/discordEvents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ export class DiscordEvents extends baseEvent {
const embed = new EmbedBuilder()
.setColor("#00FFFF")
.setTitle("Welcome to the server!")
.setDescription(`Welcome to the Derg server, ${member.user.username}! Please read the rules and press the confirmation button to get full access.`);
.setDescription(`Welcome to the Derg server, ${member.user.username}! Please read the rules and press the confirmation button to get full access. Remember to do so within 24 hours or autokick will happen!`);

try {
await member.send({embeds: [embed]});
Expand Down
6 changes: 6 additions & 0 deletions src/services/unverifyKick.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,12 @@ export class unverifyKickLoader {
.setTimestamp();
await member.send({embeds: [embed]});
await member.kick("User remains unverified for at least 24 hours");

await this.client.logger.sendLog({
type: "Warning",
message: `**${member.user.username}** have been kicked from the server for not confirming the rules within 24 hours`
});

}

} catch(ex) {
Expand Down

0 comments on commit 093d285

Please sign in to comment.