nvm im just that retarded

This commit is contained in:
amy 2024-11-04 15:20:25 +03:30
parent 07026c7bc4
commit 62022af683
No known key found for this signature in database

View file

@ -82,7 +82,6 @@ client.on(Events.ClientReady, async () => {
client.on(Events.MessageCreate, async (message) => { client.on(Events.MessageCreate, async (message) => {
if (message.author.bot) return; if (message.author.bot) return;
if (!message.reference) return;
if (message.content.startsWith("!strikecmd")){ if (message.content.startsWith("!strikecmd")){
const thing = message.content.split(" ") const thing = message.content.split(" ")
if (thing.length == 1){ if (thing.length == 1){
@ -114,6 +113,7 @@ client.on(Events.MessageCreate, async (message) => {
await (await client.channels.fetch(config.publiclog) as DMChannel).send("user " + memberId.user.globalName + "got a new strike by " + message.author.globalName); await (await client.channels.fetch(config.publiclog) as DMChannel).send("user " + memberId.user.globalName + "got a new strike by " + message.author.globalName);
} }
} }
if (!message.reference) return;
if (message.content !== "!strike") return; if (message.content !== "!strike") return;
await strike(message) await strike(message)
}) })