Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const Discord = require("discord.js");
- const colours = require("../colours.json")
- module.exports.run = async (bot, message, args) => {
- if(args[0] == "help") return message.channel.send(`Just do ${prefix}help instead`)
- if(args[0]) {
- let command = args[0];
- if(bot.commands.has(command)) {
- command = bot.commands.get(command)
- var SHembed = new Discord.RichEmbed()
- .setColor(colours.green_dark)
- .setAuthor(`TutoDev`, message.guild.iconURL)
- .setThumbnail(bot.user.displayAvatarURL)
- .setDescription(`The bot prefix is : \`!\`\n\n`)
- message.channel.send(SHembed);
- }}
- if(!args[0]) {
- message.delete()
- let embed = new Discord.RichEmbed()
- .setAuthor(`Command Help !`, message.guild.iconURL)
- .setColor(colours.green_dark)
- .setDescription(`${message.author.username} look your dm !`)
- let Sembed = new Discord.RichEmbed()
- .setColor(colours.green_dark)
- .setAuthor(`TutoDev Help !`, message.guild.iconURL)
- .setThumbnail(bot.user.displayAvatarURL)
- .setTimestamp()
- .setDescription(`These are the avaliable commands for the \`TutoDev\` !\nThe bot prefix is: \`!\` `)
- .addField("Commands for members :", "``help`` ``cat`` ``dog`` ``serverinfo`` ``userinfo``")
- .addField("Commands for Admin :", "`No commands for Admins`")
- .setFooter("TutoDev", bot.user.displayAvatarURL)
- message.channel.send(embed).then(m => m.delete(5000));
- message.author.send(Sembed)
- }
- }
- module.exports.help = {
- name: "help"
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement