diff --git a/.gitignore b/.gitignore deleted file mode 100644 index afaf03b..0000000 --- a/.gitignore +++ /dev/null @@ -1,6 +0,0 @@ -node_modules -package-lock.json - -# Local Development Environment Setup -.env -local.js \ No newline at end of file diff --git a/labscore/utils/embed.js b/labscore/utils/embed.js index 80e75c5..aeaf5cb 100644 --- a/labscore/utils/embed.js +++ b/labscore/utils/embed.js @@ -39,6 +39,15 @@ const embedTypes = Object.freeze({ }, color: COLORS.nsfw } + }, + "loading": (context) => { + return { + author: { + iconUrl: `https://derpystuff.gitlab.io/webstorage4/v2/assets/icons/ico_loading_small.gif`, + name: `Loading` + }, + color: COLORS.embed + } } }) @@ -47,7 +56,7 @@ module.exports.createEmbed = function(type, context, content){ if(!embedTypes[type]) throw "Invalid Embed Type" if(!content) embedTypes[type](context) let emb = embedTypes[type](context) - if(["warning","error"].includes(type)){ + if(["warning","error","loading"].includes(type)){ emb.author.name = content return emb } diff --git a/labscore/utils/markdown.js b/labscore/utils/markdown.js index c84f775..e896169 100644 --- a/labscore/utils/markdown.js +++ b/labscore/utils/markdown.js @@ -19,5 +19,5 @@ module.exports.link = function(url, masked){ } module.exports.timestamp = function(time, flag = "t"){ - return `<${flag}:${Math.floor(time/1000)}>` + return `` } \ No newline at end of file