added some more stuff, still need to fix a couple things

This commit is contained in:
rhearmas 2019-12-13 14:15:59 -05:00
parent 5b8b794c92
commit 8a7766f116
1 changed files with 25 additions and 1 deletions

View File

@ -1,3 +1,5 @@
const Discord = require("discord.js");
module.exports = (client) => {
client.permlevel = message => {
let permlvl = 0;
@ -217,7 +219,7 @@ module.exports = (client) => {
});
}
return new RichEmbed({ fields, video: options.video || url })
return new Discord.RichEmbed({ fields, video: options.video || url })
.setTitle(title)
.setColor(color)
.setDescription(description)
@ -228,4 +230,26 @@ module.exports = (client) => {
.setAuthor(options.author === undefined ? '' : options.author)
.setThumbnail(options.thumbnail);
};
const randomColor = () => [
Math.floor(Math.random() * 256),
Math.floor(Math.random() * 256),
Math.floor(Math.random() * 256)
];
const randomFooter = () => {
return randomSelection([
'just add water!',
'Powered by squirrels!',
'codeisluvcodeislife',
'Where did you get that?',
'WHAT DID YOU BREAK!?',
'D-D-D-DROP THE BASS',
'Eat, Sleep, JavaScript',
'#BlameRhearmas',
'SharpBot was the best, right?',
'I like turtles',
'Hi mom!'
]);
};
};