remove useless reactions

This commit is contained in:
Jonny_Bro (Nikita) 2024-11-18 19:35:33 +05:00
parent 358253a4e3
commit f77913c007
Signed by: jonny_bro
GPG key ID: 3F1ECC04147E9BD8

View file

@ -260,9 +260,6 @@ async function tictactoe(interaction, options = {}) {
}), }),
), ),
], ],
})
.then(m => {
m.react("⭕");
}); });
else if (!options.resultBtn || options.resultBtn === false) else if (!options.resultBtn || options.resultBtn === false)
return m return m
@ -287,9 +284,6 @@ async function tictactoe(interaction, options = {}) {
), ),
], ],
components: [], components: [],
})
.then(m => {
m.react("⭕");
}); });
} else if (Args.user == 1) { } else if (Args.user == 1) {
const won = await client.users.fetch(fighters[0]).catch(console.error); const won = await client.users.fetch(fighters[0]).catch(console.error);
@ -311,9 +305,6 @@ async function tictactoe(interaction, options = {}) {
}), }),
), ),
], ],
})
.then(m => {
m.react("⭕");
}); });
else if (!options.resultBtn || options.resultBtn === false) else if (!options.resultBtn || options.resultBtn === false)
return m return m
@ -338,9 +329,6 @@ async function tictactoe(interaction, options = {}) {
), ),
], ],
components: [], components: [],
})
.then(m => {
m.react("⭕");
}); });
} }
@ -373,9 +361,6 @@ async function tictactoe(interaction, options = {}) {
}), }),
), ),
], ],
})
.then(m => {
m.react("❌");
}); });
else if (!options.resultBtn || options.resultBtn === false) else if (!options.resultBtn || options.resultBtn === false)
return m return m
@ -399,9 +384,6 @@ async function tictactoe(interaction, options = {}) {
), ),
], ],
components: [], components: [],
})
.then(m => {
m.react("❌");
}); });
} else if (Args.user == 1) { } else if (Args.user == 1) {
const won = await client.users.fetch(fighters[0]).catch(console.error); const won = await client.users.fetch(fighters[0]).catch(console.error);
@ -423,9 +405,6 @@ async function tictactoe(interaction, options = {}) {
}), }),
), ),
], ],
})
.then(m => {
m.react("❌");
}); });
else else
return m return m
@ -449,9 +428,6 @@ async function tictactoe(interaction, options = {}) {
), ),
], ],
components: [], components: [],
})
.then(m => {
m.react("❌");
}); });
} }
@ -535,9 +511,6 @@ async function tictactoe(interaction, options = {}) {
.edit({ .edit({
content: interaction.translate("fun/tictactoe:TIE"), content: interaction.translate("fun/tictactoe:TIE"),
embeds: [epm.setDescription(interaction.translate("fun/tictactoe:TIE_DESC"))], embeds: [epm.setDescription(interaction.translate("fun/tictactoe:TIE_DESC"))],
})
.then(m => {
m.react(dashmoji);
}); });
else else
return m return m
@ -556,9 +529,6 @@ async function tictactoe(interaction, options = {}) {
], ],
components: [], components: [],
}) })
.then(m => {
m.react(dashmoji);
})
.catch(() => {}); .catch(() => {});
} }
} }