diff --git a/labscore/constants.js b/labscore/constants.js index 91b6f75..da7a260 100644 --- a/labscore/constants.js +++ b/labscore/constants.js @@ -5,7 +5,8 @@ module.exports.DISCORD_INVITES = Object.freeze({ help: "https://discord.gg/xQNBB3WFne" }) -module.exports.DEFAULT_BOT_NAME = 'labsCore' +// fools2024 +module.exports.DEFAULT_BOT_NAME = '𝕃 - the everything bot' // The first prefix in this list is considered the // default prefix and will be displayed in various diff --git a/labscore/utils/embed.js b/labscore/utils/embed.js index e47cf5c..52ec5ee 100644 --- a/labscore/utils/embed.js +++ b/labscore/utils/embed.js @@ -181,6 +181,13 @@ module.exports.formatPaginationEmbeds = function(embeds){ // Creates a page for our paginator. simple helper so we dont have to do {embeds:[]} every time module.exports.page = function(embed){ + + // fools2024 + if(embed.footer) { + embed.footer.text = embed.footer.text.replace('labsCore', '𝕃 - the everything bot') + if(embed.footer.iconUrl = STATICS.labscore) embed.footer.iconUrl = "https://cdn.discordapp.com/attachments/839367089801527306/1224142999207022822/everything.png?ex=661c6b02&is=6609f602&hm=62ae387bafcc85a4e9c9a1fd3f4ad1839d19881f3d915ab442b4cb8cbba2adcf&" + } + return { embeds: [embed] } diff --git a/labscore/utils/message.js b/labscore/utils/message.js index 328fb83..d19ca7a 100644 --- a/labscore/utils/message.js +++ b/labscore/utils/message.js @@ -1,5 +1,6 @@ const { Permissions } = require("detritus-client/lib/constants") const { basecamp } = require("../logging") +const { STATICS } = require("./statics") module.exports.editOrReply = function(context, message, disableReference = false){ // Apply message_reference @@ -11,6 +12,18 @@ module.exports.editOrReply = function(context, message, disableReference = false // you can figure out what this does on your own time //message.nonce = Math.floor(Math.random() * 9999 + 1000) + // fools2024 + if(message.embeds?.length){ + for (let i = 0; i < message.embeds.length; i++) { + const embed = message.embeds[i]; + console.log(embed) + if(embed.footer) { + message.embeds[i].footer.text = message.embeds[i].footer.text.replace('labsCore', '𝕃 - the everything bot') + if(embed.footer.iconUrl = STATICS.labscore) message.embeds[i].footer.iconUrl = "https://cdn.discordapp.com/attachments/839367089801527306/1224142999207022822/everything.png?ex=661c6b02&is=6609f602&hm=62ae387bafcc85a4e9c9a1fd3f4ad1839d19881f3d915ab442b4cb8cbba2adcf&" + } + } + } + // Handle responses for interaction context if(context.editOrRespond){ return context.editOrRespond(message).catch((e)=>{