mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-09 14:43:05 -04:00
fools2024
This commit is contained in:
parent
09d3106d0e
commit
19df939336
3 changed files with 22 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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]
|
||||
}
|
||||
|
|
|
@ -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)=>{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue