mirror of
https://github.com/Ninluc/Dat_Boi.git
synced 2025-08-09 23:26:13 +02:00
33 lines
1.1 KiB
JavaScript
33 lines
1.1 KiB
JavaScript
const { MessageEmbed } = require("discord.js");
|
|
const config = require("../botconfig/config.json");
|
|
const ee = require("../botconfig/embed.json");
|
|
const { choose, isNinluc } = require("../handlers/functions");
|
|
|
|
module.exports = {
|
|
keyword: "bsr",
|
|
regex: /^.{0,5}(bsr|bonsoir).{0,17}$/i,
|
|
cooldown: 3,
|
|
random: 80,
|
|
run: async (client, message, user) => {
|
|
try{
|
|
// If it has mentions → return nothing
|
|
if (message.mentions.members.size) {return;}
|
|
|
|
var answers = ["Bonsoir 🌙", `bsr ${message.author}`];
|
|
|
|
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 */
|