mirror of
https://github.com/Ninluc/Dat_Boi.git
synced 2025-08-09 23:26:13 +02:00
Initial commit
This commit is contained in:
34
keywords/bjr.js
Normal file
34
keywords/bjr.js
Normal file
@ -0,0 +1,34 @@
|
||||
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: "bjr",
|
||||
regex: /^.{0,5}(bjr|bonjour).{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 = ["Bonjour 🌞", `slt ${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 */
|
34
keywords/bsr.js
Normal file
34
keywords/bsr.js
Normal file
@ -0,0 +1,34 @@
|
||||
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}`, "bsr Figue..."];
|
||||
|
||||
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 */
|
28
keywords/ouistiti.js
Normal file
28
keywords/ouistiti.js
Normal file
@ -0,0 +1,28 @@
|
||||
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 */
|
28
keywords/quoifeur.js
Normal file
28
keywords/quoifeur.js
Normal file
@ -0,0 +1,28 @@
|
||||
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: "quoi",
|
||||
regex: /quoi(\ |\.|\!|\?)*$/i,
|
||||
cooldown: 2,
|
||||
random: 30,
|
||||
run: async (client, message, user) => {
|
||||
try{
|
||||
var answers = ["...feur", "feur 😋", "😈", "KOIKOUBEH"];
|
||||
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 */
|
39
keywords/slt.js
Normal file
39
keywords/slt.js
Normal file
@ -0,0 +1,39 @@
|
||||
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: "slt",
|
||||
regex: /^.{0,5}(slt|salut).{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;}
|
||||
|
||||
|
||||
|
||||
if (isNinluc(message.author.id)) {
|
||||
var answers = ["Sup bro 🤛"];
|
||||
}
|
||||
else {
|
||||
var answers = ["Salut 👋", `slt ${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 */
|
Reference in New Issue
Block a user