Files
Dat_Boi/keywords/freaky.js
2024-07-31 17:04:36 +02:00

51 lines
1.4 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

const { MessageEmbed, Message } = require("discord.js");
const config = require("../botconfig/config.json");
const ee = require("../botconfig/embed.json");
const {
getRandomInt,
choose,
isNinluc,
isLama,
} = require("../handlers/functions");
module.exports = {
keyword: "freaky",
regex: /^.{0,5}(freak|freaky).{0,17}$/i,
cooldown: 3,
random: 80,
run: async (client, message, user) => {
try {
if (getRandomInt(2) == 1) {
// Reaction
let reactionEmojis = ["😏", "👀"];
if (isLama(message.guildId)) {
reactionEmojis.push("<:freaky:1266759402417819668>");
}
return message.react(choose(reactionEmojis));
} else {
var answers = [
"Oil up bro",
"Prepare I'm coming to your house 🚗",
"Better be oiled up when I'm here 👀",
"On dirait bien que qelqu'un est un peu 𝓯𝓻𝓮𝓪𝓴𝔂 par ici 😜",
];
return message.channel.send({ content: choose(answers) });
}
} catch (e) {
console.log(String(e.stack).bgRed);
return message.channel.send({
embeds: [
new MessageEmbed()
.setColor(ee.wrongcolor)
.setFooter({ text: ee.footertext, iconURL: ee.footericon })
.setTitle(`❌ ERREUR | Une erreur est survenue : `)
.setDescription(`\`\`\`${e.stack}\`\`\``),
],
});
}
},
};
/** Template by Tomato#6966 | https://github.com/Tomato6966/Discord-Js-Handler-Template */