#100 dapro
DIAdiscord.js - Imagine an app
•Created by #100 dapro on 1/26/2025 in #djs-questions
i need help
Thank you for giving me your time
47 replies
DIAdiscord.js - Imagine an app
•Created by #100 dapro on 1/26/2025 in #djs-questions
i need help
Thank you so much for telling me
47 replies
DIAdiscord.js - Imagine an app
•Created by #100 dapro on 1/26/2025 in #djs-questions
i need help
I didnt know
47 replies
DIAdiscord.js - Imagine an app
•Created by #100 dapro on 1/26/2025 in #djs-questions
i need help
Am so sorry
47 replies
DIAdiscord.js - Imagine an app
•Created by #100 dapro on 1/26/2025 in #djs-questions
i need help
Fuck
47 replies
DIAdiscord.js - Imagine an app
•Created by #100 dapro on 1/26/2025 in #djs-questions
i need help
Is it illegal???
47 replies
DIAdiscord.js - Imagine an app
•Created by #100 dapro on 1/26/2025 in #djs-questions
i need help
Wait a sec
47 replies
DIAdiscord.js - Imagine an app
•Created by #100 dapro on 1/26/2025 in #djs-questions
i need help
Why is that the case
47 replies
DIAdiscord.js - Imagine an app
•Created by #100 dapro on 1/26/2025 in #djs-questions
i need help
Thank you but you do know iam talking about selfbots?
47 replies
DIAdiscord.js - Imagine an app
•Created by #100 dapro on 1/26/2025 in #djs-questions
i need help
I wanna make my own
47 replies
DIAdiscord.js - Imagine an app
•Created by #100 dapro on 1/26/2025 in #djs-questions
i need help
Here
47 replies
DIAdiscord.js - Imagine an app
•Created by #100 dapro on 1/26/2025 in #djs-questions
i need help
const activeReactions = new Map();
module.exports = {
run: async (client, message, args) => {
// Permission check: Only the bot owner can execute this command
if (message.author.id !== client.user.id) return;
// Check for arguments
if (args.length < 1) {
return message.reply(
"Use the command as follows:\n
Start: .ar <UserID> <Emoji1>,<Emoji2>,...
\nStop: .ar stop <UserID>
"
);
}
// Check if the command is "stop"
if (args[0].toLowerCase() === "stop") {
const targetUserId = args[1]; // ID of the user to stop the feature for
if (!targetUserId || !activeReactions.has(targetUserId)) {
return message.reply("No active AutoReact found for this user.");
}
activeReactions.delete(targetUserId); // Disable reactions
return message.reply(
Automatic reactions for user with ID ${targetUserId} have been disabled.
);
}
// Extract UserID and emoji list
const targetUserId = args[0]; // ID of the target user
const emojis = args.slice(1).join(" ").split(","); // Split emojis
if (emojis.length === 0) {
return message.reply("Please provide at least one emoji.");
}
// Update the map: Link user ID with emojis
activeReactions.set(targetUserId, emojis);
// Enable event listener
client.on("messageCreate", (msg) => {
if (!activeReactions.has(msg.author.id)) return; // No active reaction for this user
if (msg.author.id === targetUserId && !msg.author.bot) {
const emojis = activeReactions.get(targetUserId); // Retrieve emojis
const randomEmoji =
emojis[Math.floor(Math.random() * emojis.length)]; // Pick a random emoji
msg.react(randomEmoji).catch((error) =>
console.error("Error adding reaction:", error)
);
}
});
message.reply(
Automatic reactions for user with ID ${targetUserId} have been activated.\nEmojis: ${emojis.join(
", "
)}
);
},
};47 replies
DIAdiscord.js - Imagine an app
•Created by #100 dapro on 1/26/2025 in #djs-questions
i need help
Wait lemme send it
47 replies
DIAdiscord.js - Imagine an app
•Created by #100 dapro on 1/26/2025 in #djs-questions
i need help
I have my friends code but i wanna make my own(he found it on chatgpt)
47 replies
DIAdiscord.js - Imagine an app
•Created by #100 dapro on 1/26/2025 in #djs-questions
i need help
Thank you
47 replies
DIAdiscord.js - Imagine an app
•Created by #100 dapro on 1/26/2025 in #djs-questions
i need help
Alr
47 replies
DIAdiscord.js - Imagine an app
•Created by #100 dapro on 1/26/2025 in #djs-questions
i need help
Ah
47 replies
DIAdiscord.js - Imagine an app
•Created by #100 dapro on 1/26/2025 in #djs-questions
i need help
So when i type for example “!ar (user) (emoji)” it will react to that specific user with the emoji mentioned?
47 replies
DIAdiscord.js - Imagine an app
•Created by #100 dapro on 1/26/2025 in #djs-questions
i need help
Iam new bro sorry
47 replies
DIAdiscord.js - Imagine an app
•Created by #100 dapro on 1/26/2025 in #djs-questions
i need help
How do i do it
47 replies