Skip to content

Commit

Permalink
Update index.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Owen3H committed Sep 23, 2024
1 parent 3acdfd1 commit 234549f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,14 @@ const replies = [
"You have been automatically reported to Discord.", "Please hold. Currently doing your mother."
]

client.on('messageCreate', async ({ member, guild, mentions, reply }) => {
client.on('messageCreate', async msg => {
const { guild, member, mentions } = msg

if (guild.id != "966271635894190090") return // Ensure toolkit discord
if (member.roles.cache.has("966359842417705020")) return // Ensure not editor
if (!mentions.has("263377802647175170")) return // Ensure mention is me

await reply(replies[Math.floor(Math.random() * replies.length)])
await msg.reply(replies[Math.floor(Math.random() * replies.length)])
member.timeout(10 * 60 * 1000)
})
//#endregion

0 comments on commit 234549f

Please sign in to comment.