Skip to content
Snippets Groups Projects
Commit 72942721 authored by Reviath's avatar Reviath
Browse files

Added spoiler command.

parent 145c460a
Branches
Tags
No related merge requests found
const Discord = require("discord.js");
const errors = require('../errors.json');
exports.run = async (client, message, args) => {
const spoiler_message = args.join(' ');
if (!spoiler_message) {
message.channel.send(errors.insufficient_args).catch(e => {
return;
});
return;
};
const embed = new Discord.MessageEmbed()
.setColor('RANDOM')
.setDescription(`|| ${spoiler_message} ||`);
message.channel.send(embed).catch(e => {
message.channel.send(errors.cannot_send_embed).catch(e => {
return;
});
});
};
module.exports.help = {
name: 'start-vote',
aliases: ['start_vote']
};
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment