Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (command === "say") {
- let embed = new Discord.RichEmbed()
- .setColor("#ff0000")
- .setTitle(`❌${message.author.username}, error!❌`)
- .setDescription(`Only Liridon can use this command.`)
- .setFooter("This bot was made by Ryyan Bot developer.")
- .setTimestamp()
- if (message.author.id !== "425720369156980736") return message.channel.send(embed)
- message.react('👌')
- // makes the bot say something and delete the message. As an example, it's open to anyone to use.
- // To get the "message" itself we join the `args` back into a string with spaces:
- const sayMessage = args.join(" ");
- // Then we delete the command message (sneaky, right?). The catch just ignores the error with a cute smiley thing.
- message.delete().catch(O_o => {});
- // And we get the bot to say the thing:
- message.channel.send(sayMessage);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement