From 8a7766f116faa1909cc1f063bc6b67305cc5d712 Mon Sep 17 00:00:00 2001 From: rhearmas <34490428+qu-ota@users.noreply.github.com> Date: Fri, 13 Dec 2019 14:15:59 -0500 Subject: [PATCH] added some more stuff, still need to fix a couple things --- modules/functions.js | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/modules/functions.js b/modules/functions.js index f218de7..7feccb8 100644 --- a/modules/functions.js +++ b/modules/functions.js @@ -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!' + ]); + }; };