mirror of
https://github.com/Ninluc/Dat_Boi.git
synced 2025-08-09 18:16:15 +02:00
29 lines
945 B
JavaScript
29 lines
945 B
JavaScript
const { MessageEmbed } = require("discord.js");
|
|
const config = require("../botconfig/config.json");
|
|
const ee = require("../botconfig/embed.json");
|
|
const { choose } = require("../handlers/functions");
|
|
|
|
module.exports = {
|
|
keyword: "oui",
|
|
regex: /oui(\ |\.|\!|\?)*$/i,
|
|
cooldown: 3,
|
|
random: 25,
|
|
run: async (client, message, user) => {
|
|
try{
|
|
var answers = ["...stiti", "stiti 😋"];
|
|
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 */
|