Skip to content

Commit

Permalink
Augmenter le nombre de réaction pour flag un repost (#10)
Browse files Browse the repository at this point in the history
* correctif temps redirection

* oupsy fix du salon choisi comme sondage

* augmente le nombre de réaction pour flag un repost

---------

Co-authored-by: Maxime DANIEL <maxime.daniel208@gmail.com>
  • Loading branch information
awing-ding and max-208 authored Aug 23, 2024
1 parent bf0fcd0 commit c87e4cd
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ const { REST, Routes, PermissionsBitField, Events } = require('discord.js');
const utilities = require('./utilities');
require("dotenv").config();

const salonSondage = process.env.SALON_SONDAGE ?? "522437669582667787";
const CHANNEL_SONDAGE = "522437669582667787";
const repostReactionNumber = 5;


const { Client, GatewayIntentBits } = require('discord.js');
const myIntents = [
Expand Down Expand Up @@ -94,7 +96,8 @@ client.on(Events.MessageReactionAdd, async (reaction, user) => {
if (reaction.emoji.name === '🚩' && reaction.count >= 1 && member.roles.cache.some(role => role.id == utilities.roleMod ) ) {
utilities.warn(reaction.message,member);
}
if (reaction.emoji.name === '♻️' && reaction.count >= 3 && reaction.message.channel == utilities.salonMeme && !reaction.message.author.bot && reaction.message.author.id != "352459053928022017") {
if (reaction.emoji.name == '♻️' && reaction.count >= repostReactionNumber && reaction.message.channel == utilities.salonMeme && !reaction.message.author.bot && reaction.message.author.id != "352459053928022017") {

reaction.message.channel.send("le repost hammer est tombé sur " + reaction.message.author.username + " *bonk*")
await utilities.warn(reaction.message,null);
await reaction.message.delete();
Expand Down

0 comments on commit c87e4cd

Please sign in to comment.