Skip to content

Commit 4a3348c

Browse files
Auto ping voice mods
1 parent 35e9984 commit 4a3348c

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

src/components/moderation/voice-deputies.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,4 +171,14 @@ export default class VoiceDeputies extends BotComponent {
171171
await this.wheatley.channels.voice_hotline.send(`user was disconnected by <@${entry.executorId}>`);
172172
}
173173
}
174+
175+
override async on_message_create(message: Discord.Message) {
176+
if (
177+
message.channel.isVoiceBased() &&
178+
message.mentions.roles.has(this.wheatley.roles.moderators.id) &&
179+
!message.mentions.roles.has(this.wheatley.roles.voice_deputy.id)
180+
) {
181+
await message.channel.send(`<@&${this.wheatley.roles.voice_deputy.id}>`);
182+
}
183+
}
174184
}

0 commit comments

Comments
 (0)