Ajout du Bot
This commit is contained in:
		
							
								
								
									
										17
									
								
								commands/Developpeur/eval.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								commands/Developpeur/eval.js
									
									
									
									
									
										Normal 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;
 | 
			
		||||
							
								
								
									
										10
									
								
								commands/Developpeur/reload.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								commands/Developpeur/reload.js
									
									
									
									
									
										Normal 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;
 | 
			
		||||
		Reference in New Issue
	
	Block a user