Ajout du Bot

This commit is contained in:
2022-01-04 01:35:59 +00:00
parent 23765f669d
commit deb56874f4
61 changed files with 3749 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
const { MESSAGES } = require("../../util/constants");
module.exports.run = async (client, message, args) => {
function clean(text) {
if (typeof text === "string")
return text.replace(/`/g, "`" + String.fromCharCode(8203)).replace(/@/g, "@" + String.fromCharCode(8203));
return text;
}
if (message.author.id !== "327193195085824001") return message.channel.send("Cette commande est réservé au développeur de LanBot");
const code = args.join(" ");
const evaled = eval(code);
const cleanCode = await clean(evaled);
message.channel.send(cleanCode, { code: "js" });
};
module.exports.help = MESSAGES.COMMANDS.DEVELOPPEUR.EVAL;

View File

@@ -0,0 +1,10 @@
const { MESSAGES } = require("../../util/constants");
module.exports.run = async (client, message, args) => {
if (message.author.id !== "327193195085824001") return message.channel.send("Cette commande est réservé au développeur de LanBot");
client.channels.cache.get('844290195787743262').send("Je redémarre !");
await message.delete();
process.exit();
};
module.exports.help = MESSAGES.COMMANDS.DEVELOPPEUR.RELOAD;