stuff
This commit is contained in:
parent
cd3549b0d5
commit
faf7dca466
|
@ -17,10 +17,11 @@ module.exports = (_ => {
|
||||||
};
|
};
|
||||||
|
|
||||||
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
||||||
getName () {return config.info.name;}
|
constructor (meta) {for (let key in meta) this[key] = meta[key];}
|
||||||
getAuthor () {return config.info.author;}
|
getName () {return this.name;}
|
||||||
getVersion () {return config.info.version;}
|
getAuthor () {return this.author;}
|
||||||
getDescription () {return `The Library Plugin needed for ${config.info.name} is missing. Open the Plugin Settings to download it. \n\n${config.info.description}`;}
|
getVersion () {return this.version;}
|
||||||
|
getDescription () {return `The Library Plugin needed for ${this.name} is missing. Open the Plugin Settings to download it. \n\n${this.description}`;}
|
||||||
|
|
||||||
downloadLibrary () {
|
downloadLibrary () {
|
||||||
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
||||||
|
@ -33,7 +34,7 @@ module.exports = (_ => {
|
||||||
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
||||||
if (!window.BDFDB_Global.downloadModal) {
|
if (!window.BDFDB_Global.downloadModal) {
|
||||||
window.BDFDB_Global.downloadModal = true;
|
window.BDFDB_Global.downloadModal = true;
|
||||||
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${config.info.name} is missing. Please click "Download Now" to install it.`, {
|
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${this.name} is missing. Please click "Download Now" to install it.`, {
|
||||||
confirmText: "Download Now",
|
confirmText: "Download Now",
|
||||||
cancelText: "Cancel",
|
cancelText: "Cancel",
|
||||||
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
||||||
|
@ -43,13 +44,13 @@ module.exports = (_ => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name);
|
if (!window.BDFDB_Global.pluginQueue.includes(this.name)) window.BDFDB_Global.pluginQueue.push(this.name);
|
||||||
}
|
}
|
||||||
start () {this.load();}
|
start () {this.load();}
|
||||||
stop () {}
|
stop () {}
|
||||||
getSettingsPanel () {
|
getSettingsPanel () {
|
||||||
let template = document.createElement("template");
|
let template = document.createElement("template");
|
||||||
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${config.info.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${this.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
||||||
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
||||||
return template.content.firstElementChild;
|
return template.content.firstElementChild;
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,10 +17,11 @@ module.exports = (_ => {
|
||||||
};
|
};
|
||||||
|
|
||||||
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
||||||
getName () {return config.info.name;}
|
constructor (meta) {for (let key in meta) this[key] = meta[key];}
|
||||||
getAuthor () {return config.info.author;}
|
getName () {return this.name;}
|
||||||
getVersion () {return config.info.version;}
|
getAuthor () {return this.author;}
|
||||||
getDescription () {return `The Library Plugin needed for ${config.info.name} is missing. Open the Plugin Settings to download it. \n\n${config.info.description}`;}
|
getVersion () {return this.version;}
|
||||||
|
getDescription () {return `The Library Plugin needed for ${this.name} is missing. Open the Plugin Settings to download it. \n\n${this.description}`;}
|
||||||
|
|
||||||
downloadLibrary () {
|
downloadLibrary () {
|
||||||
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
||||||
|
@ -33,7 +34,7 @@ module.exports = (_ => {
|
||||||
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
||||||
if (!window.BDFDB_Global.downloadModal) {
|
if (!window.BDFDB_Global.downloadModal) {
|
||||||
window.BDFDB_Global.downloadModal = true;
|
window.BDFDB_Global.downloadModal = true;
|
||||||
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${config.info.name} is missing. Please click "Download Now" to install it.`, {
|
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${this.name} is missing. Please click "Download Now" to install it.`, {
|
||||||
confirmText: "Download Now",
|
confirmText: "Download Now",
|
||||||
cancelText: "Cancel",
|
cancelText: "Cancel",
|
||||||
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
||||||
|
@ -43,13 +44,13 @@ module.exports = (_ => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name);
|
if (!window.BDFDB_Global.pluginQueue.includes(this.name)) window.BDFDB_Global.pluginQueue.push(this.name);
|
||||||
}
|
}
|
||||||
start () {this.load();}
|
start () {this.load();}
|
||||||
stop () {}
|
stop () {}
|
||||||
getSettingsPanel () {
|
getSettingsPanel () {
|
||||||
let template = document.createElement("template");
|
let template = document.createElement("template");
|
||||||
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${config.info.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${this.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
||||||
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
||||||
return template.content.firstElementChild;
|
return template.content.firstElementChild;
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,10 +17,11 @@ module.exports = (_ => {
|
||||||
};
|
};
|
||||||
|
|
||||||
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
||||||
getName () {return config.info.name;}
|
constructor (meta) {for (let key in meta) this[key] = meta[key];}
|
||||||
getAuthor () {return config.info.author;}
|
getName () {return this.name;}
|
||||||
getVersion () {return config.info.version;}
|
getAuthor () {return this.author;}
|
||||||
getDescription () {return `The Library Plugin needed for ${config.info.name} is missing. Open the Plugin Settings to download it. \n\n${config.info.description}`;}
|
getVersion () {return this.version;}
|
||||||
|
getDescription () {return `The Library Plugin needed for ${this.name} is missing. Open the Plugin Settings to download it. \n\n${this.description}`;}
|
||||||
|
|
||||||
downloadLibrary () {
|
downloadLibrary () {
|
||||||
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
||||||
|
@ -33,7 +34,7 @@ module.exports = (_ => {
|
||||||
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
||||||
if (!window.BDFDB_Global.downloadModal) {
|
if (!window.BDFDB_Global.downloadModal) {
|
||||||
window.BDFDB_Global.downloadModal = true;
|
window.BDFDB_Global.downloadModal = true;
|
||||||
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${config.info.name} is missing. Please click "Download Now" to install it.`, {
|
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${this.name} is missing. Please click "Download Now" to install it.`, {
|
||||||
confirmText: "Download Now",
|
confirmText: "Download Now",
|
||||||
cancelText: "Cancel",
|
cancelText: "Cancel",
|
||||||
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
||||||
|
@ -43,13 +44,13 @@ module.exports = (_ => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name);
|
if (!window.BDFDB_Global.pluginQueue.includes(this.name)) window.BDFDB_Global.pluginQueue.push(this.name);
|
||||||
}
|
}
|
||||||
start () {this.load();}
|
start () {this.load();}
|
||||||
stop () {}
|
stop () {}
|
||||||
getSettingsPanel () {
|
getSettingsPanel () {
|
||||||
let template = document.createElement("template");
|
let template = document.createElement("template");
|
||||||
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${config.info.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${this.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
||||||
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
||||||
return template.content.firstElementChild;
|
return template.content.firstElementChild;
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,10 +17,11 @@ module.exports = (_ => {
|
||||||
};
|
};
|
||||||
|
|
||||||
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
||||||
getName () {return config.info.name;}
|
constructor (meta) {for (let key in meta) this[key] = meta[key];}
|
||||||
getAuthor () {return config.info.author;}
|
getName () {return this.name;}
|
||||||
getVersion () {return config.info.version;}
|
getAuthor () {return this.author;}
|
||||||
getDescription () {return `The Library Plugin needed for ${config.info.name} is missing. Open the Plugin Settings to download it. \n\n${config.info.description}`;}
|
getVersion () {return this.version;}
|
||||||
|
getDescription () {return `The Library Plugin needed for ${this.name} is missing. Open the Plugin Settings to download it. \n\n${this.description}`;}
|
||||||
|
|
||||||
downloadLibrary () {
|
downloadLibrary () {
|
||||||
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
||||||
|
@ -33,7 +34,7 @@ module.exports = (_ => {
|
||||||
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
||||||
if (!window.BDFDB_Global.downloadModal) {
|
if (!window.BDFDB_Global.downloadModal) {
|
||||||
window.BDFDB_Global.downloadModal = true;
|
window.BDFDB_Global.downloadModal = true;
|
||||||
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${config.info.name} is missing. Please click "Download Now" to install it.`, {
|
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${this.name} is missing. Please click "Download Now" to install it.`, {
|
||||||
confirmText: "Download Now",
|
confirmText: "Download Now",
|
||||||
cancelText: "Cancel",
|
cancelText: "Cancel",
|
||||||
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
||||||
|
@ -43,13 +44,13 @@ module.exports = (_ => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name);
|
if (!window.BDFDB_Global.pluginQueue.includes(this.name)) window.BDFDB_Global.pluginQueue.push(this.name);
|
||||||
}
|
}
|
||||||
start () {this.load();}
|
start () {this.load();}
|
||||||
stop () {}
|
stop () {}
|
||||||
getSettingsPanel () {
|
getSettingsPanel () {
|
||||||
let template = document.createElement("template");
|
let template = document.createElement("template");
|
||||||
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${config.info.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${this.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
||||||
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
||||||
return template.content.firstElementChild;
|
return template.content.firstElementChild;
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,10 +17,11 @@ module.exports = (_ => {
|
||||||
};
|
};
|
||||||
|
|
||||||
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
||||||
getName () {return config.info.name;}
|
constructor (meta) {for (let key in meta) this[key] = meta[key];}
|
||||||
getAuthor () {return config.info.author;}
|
getName () {return this.name;}
|
||||||
getVersion () {return config.info.version;}
|
getAuthor () {return this.author;}
|
||||||
getDescription () {return `The Library Plugin needed for ${config.info.name} is missing. Open the Plugin Settings to download it. \n\n${config.info.description}`;}
|
getVersion () {return this.version;}
|
||||||
|
getDescription () {return `The Library Plugin needed for ${this.name} is missing. Open the Plugin Settings to download it. \n\n${this.description}`;}
|
||||||
|
|
||||||
downloadLibrary () {
|
downloadLibrary () {
|
||||||
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
||||||
|
@ -33,7 +34,7 @@ module.exports = (_ => {
|
||||||
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
||||||
if (!window.BDFDB_Global.downloadModal) {
|
if (!window.BDFDB_Global.downloadModal) {
|
||||||
window.BDFDB_Global.downloadModal = true;
|
window.BDFDB_Global.downloadModal = true;
|
||||||
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${config.info.name} is missing. Please click "Download Now" to install it.`, {
|
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${this.name} is missing. Please click "Download Now" to install it.`, {
|
||||||
confirmText: "Download Now",
|
confirmText: "Download Now",
|
||||||
cancelText: "Cancel",
|
cancelText: "Cancel",
|
||||||
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
||||||
|
@ -43,13 +44,13 @@ module.exports = (_ => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name);
|
if (!window.BDFDB_Global.pluginQueue.includes(this.name)) window.BDFDB_Global.pluginQueue.push(this.name);
|
||||||
}
|
}
|
||||||
start () {this.load();}
|
start () {this.load();}
|
||||||
stop () {}
|
stop () {}
|
||||||
getSettingsPanel () {
|
getSettingsPanel () {
|
||||||
let template = document.createElement("template");
|
let template = document.createElement("template");
|
||||||
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${config.info.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${this.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
||||||
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
||||||
return template.content.firstElementChild;
|
return template.content.firstElementChild;
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,10 +17,11 @@ module.exports = (_ => {
|
||||||
};
|
};
|
||||||
|
|
||||||
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
||||||
getName () {return config.info.name;}
|
constructor (meta) {for (let key in meta) this[key] = meta[key];}
|
||||||
getAuthor () {return config.info.author;}
|
getName () {return this.name;}
|
||||||
getVersion () {return config.info.version;}
|
getAuthor () {return this.author;}
|
||||||
getDescription () {return `The Library Plugin needed for ${config.info.name} is missing. Open the Plugin Settings to download it. \n\n${config.info.description}`;}
|
getVersion () {return this.version;}
|
||||||
|
getDescription () {return `The Library Plugin needed for ${this.name} is missing. Open the Plugin Settings to download it. \n\n${this.description}`;}
|
||||||
|
|
||||||
downloadLibrary () {
|
downloadLibrary () {
|
||||||
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
||||||
|
@ -33,7 +34,7 @@ module.exports = (_ => {
|
||||||
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
||||||
if (!window.BDFDB_Global.downloadModal) {
|
if (!window.BDFDB_Global.downloadModal) {
|
||||||
window.BDFDB_Global.downloadModal = true;
|
window.BDFDB_Global.downloadModal = true;
|
||||||
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${config.info.name} is missing. Please click "Download Now" to install it.`, {
|
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${this.name} is missing. Please click "Download Now" to install it.`, {
|
||||||
confirmText: "Download Now",
|
confirmText: "Download Now",
|
||||||
cancelText: "Cancel",
|
cancelText: "Cancel",
|
||||||
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
||||||
|
@ -43,13 +44,13 @@ module.exports = (_ => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name);
|
if (!window.BDFDB_Global.pluginQueue.includes(this.name)) window.BDFDB_Global.pluginQueue.push(this.name);
|
||||||
}
|
}
|
||||||
start () {this.load();}
|
start () {this.load();}
|
||||||
stop () {}
|
stop () {}
|
||||||
getSettingsPanel () {
|
getSettingsPanel () {
|
||||||
let template = document.createElement("template");
|
let template = document.createElement("template");
|
||||||
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${config.info.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${this.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
||||||
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
||||||
return template.content.firstElementChild;
|
return template.content.firstElementChild;
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,10 +17,11 @@ module.exports = (_ => {
|
||||||
};
|
};
|
||||||
|
|
||||||
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
||||||
getName () {return config.info.name;}
|
constructor (meta) {for (let key in meta) this[key] = meta[key];}
|
||||||
getAuthor () {return config.info.author;}
|
getName () {return this.name;}
|
||||||
getVersion () {return config.info.version;}
|
getAuthor () {return this.author;}
|
||||||
getDescription () {return `The Library Plugin needed for ${config.info.name} is missing. Open the Plugin Settings to download it. \n\n${config.info.description}`;}
|
getVersion () {return this.version;}
|
||||||
|
getDescription () {return `The Library Plugin needed for ${this.name} is missing. Open the Plugin Settings to download it. \n\n${this.description}`;}
|
||||||
|
|
||||||
downloadLibrary () {
|
downloadLibrary () {
|
||||||
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
||||||
|
@ -33,7 +34,7 @@ module.exports = (_ => {
|
||||||
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
||||||
if (!window.BDFDB_Global.downloadModal) {
|
if (!window.BDFDB_Global.downloadModal) {
|
||||||
window.BDFDB_Global.downloadModal = true;
|
window.BDFDB_Global.downloadModal = true;
|
||||||
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${config.info.name} is missing. Please click "Download Now" to install it.`, {
|
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${this.name} is missing. Please click "Download Now" to install it.`, {
|
||||||
confirmText: "Download Now",
|
confirmText: "Download Now",
|
||||||
cancelText: "Cancel",
|
cancelText: "Cancel",
|
||||||
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
||||||
|
@ -43,13 +44,13 @@ module.exports = (_ => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name);
|
if (!window.BDFDB_Global.pluginQueue.includes(this.name)) window.BDFDB_Global.pluginQueue.push(this.name);
|
||||||
}
|
}
|
||||||
start () {this.load();}
|
start () {this.load();}
|
||||||
stop () {}
|
stop () {}
|
||||||
getSettingsPanel () {
|
getSettingsPanel () {
|
||||||
let template = document.createElement("template");
|
let template = document.createElement("template");
|
||||||
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${config.info.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${this.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
||||||
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
||||||
return template.content.firstElementChild;
|
return template.content.firstElementChild;
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,10 +17,11 @@ module.exports = (_ => {
|
||||||
};
|
};
|
||||||
|
|
||||||
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
||||||
getName () {return config.info.name;}
|
constructor (meta) {for (let key in meta) this[key] = meta[key];}
|
||||||
getAuthor () {return config.info.author;}
|
getName () {return this.name;}
|
||||||
getVersion () {return config.info.version;}
|
getAuthor () {return this.author;}
|
||||||
getDescription () {return `The Library Plugin needed for ${config.info.name} is missing. Open the Plugin Settings to download it. \n\n${config.info.description}`;}
|
getVersion () {return this.version;}
|
||||||
|
getDescription () {return `The Library Plugin needed for ${this.name} is missing. Open the Plugin Settings to download it. \n\n${this.description}`;}
|
||||||
|
|
||||||
downloadLibrary () {
|
downloadLibrary () {
|
||||||
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
||||||
|
@ -33,7 +34,7 @@ module.exports = (_ => {
|
||||||
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
||||||
if (!window.BDFDB_Global.downloadModal) {
|
if (!window.BDFDB_Global.downloadModal) {
|
||||||
window.BDFDB_Global.downloadModal = true;
|
window.BDFDB_Global.downloadModal = true;
|
||||||
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${config.info.name} is missing. Please click "Download Now" to install it.`, {
|
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${this.name} is missing. Please click "Download Now" to install it.`, {
|
||||||
confirmText: "Download Now",
|
confirmText: "Download Now",
|
||||||
cancelText: "Cancel",
|
cancelText: "Cancel",
|
||||||
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
||||||
|
@ -43,13 +44,13 @@ module.exports = (_ => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name);
|
if (!window.BDFDB_Global.pluginQueue.includes(this.name)) window.BDFDB_Global.pluginQueue.push(this.name);
|
||||||
}
|
}
|
||||||
start () {this.load();}
|
start () {this.load();}
|
||||||
stop () {}
|
stop () {}
|
||||||
getSettingsPanel () {
|
getSettingsPanel () {
|
||||||
let template = document.createElement("template");
|
let template = document.createElement("template");
|
||||||
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${config.info.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${this.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
||||||
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
||||||
return template.content.firstElementChild;
|
return template.content.firstElementChild;
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,10 +17,11 @@ module.exports = (_ => {
|
||||||
};
|
};
|
||||||
|
|
||||||
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
||||||
getName () {return config.info.name;}
|
constructor (meta) {for (let key in meta) this[key] = meta[key];}
|
||||||
getAuthor () {return config.info.author;}
|
getName () {return this.name;}
|
||||||
getVersion () {return config.info.version;}
|
getAuthor () {return this.author;}
|
||||||
getDescription () {return `The Library Plugin needed for ${config.info.name} is missing. Open the Plugin Settings to download it. \n\n${config.info.description}`;}
|
getVersion () {return this.version;}
|
||||||
|
getDescription () {return `The Library Plugin needed for ${this.name} is missing. Open the Plugin Settings to download it. \n\n${this.description}`;}
|
||||||
|
|
||||||
downloadLibrary () {
|
downloadLibrary () {
|
||||||
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
||||||
|
@ -33,7 +34,7 @@ module.exports = (_ => {
|
||||||
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
||||||
if (!window.BDFDB_Global.downloadModal) {
|
if (!window.BDFDB_Global.downloadModal) {
|
||||||
window.BDFDB_Global.downloadModal = true;
|
window.BDFDB_Global.downloadModal = true;
|
||||||
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${config.info.name} is missing. Please click "Download Now" to install it.`, {
|
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${this.name} is missing. Please click "Download Now" to install it.`, {
|
||||||
confirmText: "Download Now",
|
confirmText: "Download Now",
|
||||||
cancelText: "Cancel",
|
cancelText: "Cancel",
|
||||||
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
||||||
|
@ -43,13 +44,13 @@ module.exports = (_ => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name);
|
if (!window.BDFDB_Global.pluginQueue.includes(this.name)) window.BDFDB_Global.pluginQueue.push(this.name);
|
||||||
}
|
}
|
||||||
start () {this.load();}
|
start () {this.load();}
|
||||||
stop () {}
|
stop () {}
|
||||||
getSettingsPanel () {
|
getSettingsPanel () {
|
||||||
let template = document.createElement("template");
|
let template = document.createElement("template");
|
||||||
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${config.info.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${this.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
||||||
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
||||||
return template.content.firstElementChild;
|
return template.content.firstElementChild;
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,10 +17,11 @@ module.exports = (_ => {
|
||||||
};
|
};
|
||||||
|
|
||||||
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
||||||
getName () {return config.info.name;}
|
constructor (meta) {for (let key in meta) this[key] = meta[key];}
|
||||||
getAuthor () {return config.info.author;}
|
getName () {return this.name;}
|
||||||
getVersion () {return config.info.version;}
|
getAuthor () {return this.author;}
|
||||||
getDescription () {return `The Library Plugin needed for ${config.info.name} is missing. Open the Plugin Settings to download it. \n\n${config.info.description}`;}
|
getVersion () {return this.version;}
|
||||||
|
getDescription () {return `The Library Plugin needed for ${this.name} is missing. Open the Plugin Settings to download it. \n\n${this.description}`;}
|
||||||
|
|
||||||
downloadLibrary () {
|
downloadLibrary () {
|
||||||
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
||||||
|
@ -33,7 +34,7 @@ module.exports = (_ => {
|
||||||
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
||||||
if (!window.BDFDB_Global.downloadModal) {
|
if (!window.BDFDB_Global.downloadModal) {
|
||||||
window.BDFDB_Global.downloadModal = true;
|
window.BDFDB_Global.downloadModal = true;
|
||||||
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${config.info.name} is missing. Please click "Download Now" to install it.`, {
|
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${this.name} is missing. Please click "Download Now" to install it.`, {
|
||||||
confirmText: "Download Now",
|
confirmText: "Download Now",
|
||||||
cancelText: "Cancel",
|
cancelText: "Cancel",
|
||||||
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
||||||
|
@ -43,13 +44,13 @@ module.exports = (_ => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name);
|
if (!window.BDFDB_Global.pluginQueue.includes(this.name)) window.BDFDB_Global.pluginQueue.push(this.name);
|
||||||
}
|
}
|
||||||
start () {this.load();}
|
start () {this.load();}
|
||||||
stop () {}
|
stop () {}
|
||||||
getSettingsPanel () {
|
getSettingsPanel () {
|
||||||
let template = document.createElement("template");
|
let template = document.createElement("template");
|
||||||
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${config.info.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${this.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
||||||
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
||||||
return template.content.firstElementChild;
|
return template.content.firstElementChild;
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,10 +17,11 @@ module.exports = (_ => {
|
||||||
};
|
};
|
||||||
|
|
||||||
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
||||||
getName () {return config.info.name;}
|
constructor (meta) {for (let key in meta) this[key] = meta[key];}
|
||||||
getAuthor () {return config.info.author;}
|
getName () {return this.name;}
|
||||||
getVersion () {return config.info.version;}
|
getAuthor () {return this.author;}
|
||||||
getDescription () {return `The Library Plugin needed for ${config.info.name} is missing. Open the Plugin Settings to download it. \n\n${config.info.description}`;}
|
getVersion () {return this.version;}
|
||||||
|
getDescription () {return `The Library Plugin needed for ${this.name} is missing. Open the Plugin Settings to download it. \n\n${this.description}`;}
|
||||||
|
|
||||||
downloadLibrary () {
|
downloadLibrary () {
|
||||||
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
||||||
|
@ -33,7 +34,7 @@ module.exports = (_ => {
|
||||||
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
||||||
if (!window.BDFDB_Global.downloadModal) {
|
if (!window.BDFDB_Global.downloadModal) {
|
||||||
window.BDFDB_Global.downloadModal = true;
|
window.BDFDB_Global.downloadModal = true;
|
||||||
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${config.info.name} is missing. Please click "Download Now" to install it.`, {
|
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${this.name} is missing. Please click "Download Now" to install it.`, {
|
||||||
confirmText: "Download Now",
|
confirmText: "Download Now",
|
||||||
cancelText: "Cancel",
|
cancelText: "Cancel",
|
||||||
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
||||||
|
@ -43,13 +44,13 @@ module.exports = (_ => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name);
|
if (!window.BDFDB_Global.pluginQueue.includes(this.name)) window.BDFDB_Global.pluginQueue.push(this.name);
|
||||||
}
|
}
|
||||||
start () {this.load();}
|
start () {this.load();}
|
||||||
stop () {}
|
stop () {}
|
||||||
getSettingsPanel () {
|
getSettingsPanel () {
|
||||||
let template = document.createElement("template");
|
let template = document.createElement("template");
|
||||||
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${config.info.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${this.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
||||||
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
||||||
return template.content.firstElementChild;
|
return template.content.firstElementChild;
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,10 +17,11 @@ module.exports = (_ => {
|
||||||
};
|
};
|
||||||
|
|
||||||
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
||||||
getName () {return config.info.name;}
|
constructor (meta) {for (let key in meta) this[key] = meta[key];}
|
||||||
getAuthor () {return config.info.author;}
|
getName () {return this.name;}
|
||||||
getVersion () {return config.info.version;}
|
getAuthor () {return this.author;}
|
||||||
getDescription () {return `The Library Plugin needed for ${config.info.name} is missing. Open the Plugin Settings to download it. \n\n${config.info.description}`;}
|
getVersion () {return this.version;}
|
||||||
|
getDescription () {return `The Library Plugin needed for ${this.name} is missing. Open the Plugin Settings to download it. \n\n${this.description}`;}
|
||||||
|
|
||||||
downloadLibrary () {
|
downloadLibrary () {
|
||||||
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
||||||
|
@ -33,7 +34,7 @@ module.exports = (_ => {
|
||||||
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
||||||
if (!window.BDFDB_Global.downloadModal) {
|
if (!window.BDFDB_Global.downloadModal) {
|
||||||
window.BDFDB_Global.downloadModal = true;
|
window.BDFDB_Global.downloadModal = true;
|
||||||
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${config.info.name} is missing. Please click "Download Now" to install it.`, {
|
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${this.name} is missing. Please click "Download Now" to install it.`, {
|
||||||
confirmText: "Download Now",
|
confirmText: "Download Now",
|
||||||
cancelText: "Cancel",
|
cancelText: "Cancel",
|
||||||
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
||||||
|
@ -43,13 +44,13 @@ module.exports = (_ => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name);
|
if (!window.BDFDB_Global.pluginQueue.includes(this.name)) window.BDFDB_Global.pluginQueue.push(this.name);
|
||||||
}
|
}
|
||||||
start () {this.load();}
|
start () {this.load();}
|
||||||
stop () {}
|
stop () {}
|
||||||
getSettingsPanel () {
|
getSettingsPanel () {
|
||||||
let template = document.createElement("template");
|
let template = document.createElement("template");
|
||||||
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${config.info.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${this.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
||||||
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
||||||
return template.content.firstElementChild;
|
return template.content.firstElementChild;
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,10 +17,11 @@ module.exports = (_ => {
|
||||||
};
|
};
|
||||||
|
|
||||||
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
||||||
getName () {return config.info.name;}
|
constructor (meta) {for (let key in meta) this[key] = meta[key];}
|
||||||
getAuthor () {return config.info.author;}
|
getName () {return this.name;}
|
||||||
getVersion () {return config.info.version;}
|
getAuthor () {return this.author;}
|
||||||
getDescription () {return `The Library Plugin needed for ${config.info.name} is missing. Open the Plugin Settings to download it. \n\n${config.info.description}`;}
|
getVersion () {return this.version;}
|
||||||
|
getDescription () {return `The Library Plugin needed for ${this.name} is missing. Open the Plugin Settings to download it. \n\n${this.description}`;}
|
||||||
|
|
||||||
downloadLibrary () {
|
downloadLibrary () {
|
||||||
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
||||||
|
@ -33,7 +34,7 @@ module.exports = (_ => {
|
||||||
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
||||||
if (!window.BDFDB_Global.downloadModal) {
|
if (!window.BDFDB_Global.downloadModal) {
|
||||||
window.BDFDB_Global.downloadModal = true;
|
window.BDFDB_Global.downloadModal = true;
|
||||||
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${config.info.name} is missing. Please click "Download Now" to install it.`, {
|
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${this.name} is missing. Please click "Download Now" to install it.`, {
|
||||||
confirmText: "Download Now",
|
confirmText: "Download Now",
|
||||||
cancelText: "Cancel",
|
cancelText: "Cancel",
|
||||||
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
||||||
|
@ -43,13 +44,13 @@ module.exports = (_ => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name);
|
if (!window.BDFDB_Global.pluginQueue.includes(this.name)) window.BDFDB_Global.pluginQueue.push(this.name);
|
||||||
}
|
}
|
||||||
start () {this.load();}
|
start () {this.load();}
|
||||||
stop () {}
|
stop () {}
|
||||||
getSettingsPanel () {
|
getSettingsPanel () {
|
||||||
let template = document.createElement("template");
|
let template = document.createElement("template");
|
||||||
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${config.info.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${this.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
||||||
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
||||||
return template.content.firstElementChild;
|
return template.content.firstElementChild;
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,10 +17,11 @@ module.exports = (_ => {
|
||||||
};
|
};
|
||||||
|
|
||||||
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
||||||
getName () {return config.info.name;}
|
constructor (meta) {for (let key in meta) this[key] = meta[key];}
|
||||||
getAuthor () {return config.info.author;}
|
getName () {return this.name;}
|
||||||
getVersion () {return config.info.version;}
|
getAuthor () {return this.author;}
|
||||||
getDescription () {return `The Library Plugin needed for ${config.info.name} is missing. Open the Plugin Settings to download it. \n\n${config.info.description}`;}
|
getVersion () {return this.version;}
|
||||||
|
getDescription () {return `The Library Plugin needed for ${this.name} is missing. Open the Plugin Settings to download it. \n\n${this.description}`;}
|
||||||
|
|
||||||
downloadLibrary () {
|
downloadLibrary () {
|
||||||
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
||||||
|
@ -33,7 +34,7 @@ module.exports = (_ => {
|
||||||
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
||||||
if (!window.BDFDB_Global.downloadModal) {
|
if (!window.BDFDB_Global.downloadModal) {
|
||||||
window.BDFDB_Global.downloadModal = true;
|
window.BDFDB_Global.downloadModal = true;
|
||||||
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${config.info.name} is missing. Please click "Download Now" to install it.`, {
|
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${this.name} is missing. Please click "Download Now" to install it.`, {
|
||||||
confirmText: "Download Now",
|
confirmText: "Download Now",
|
||||||
cancelText: "Cancel",
|
cancelText: "Cancel",
|
||||||
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
||||||
|
@ -43,13 +44,13 @@ module.exports = (_ => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name);
|
if (!window.BDFDB_Global.pluginQueue.includes(this.name)) window.BDFDB_Global.pluginQueue.push(this.name);
|
||||||
}
|
}
|
||||||
start () {this.load();}
|
start () {this.load();}
|
||||||
stop () {}
|
stop () {}
|
||||||
getSettingsPanel () {
|
getSettingsPanel () {
|
||||||
let template = document.createElement("template");
|
let template = document.createElement("template");
|
||||||
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${config.info.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${this.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
||||||
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
||||||
return template.content.firstElementChild;
|
return template.content.firstElementChild;
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,10 +17,11 @@ module.exports = (_ => {
|
||||||
};
|
};
|
||||||
|
|
||||||
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
||||||
getName () {return config.info.name;}
|
constructor (meta) {for (let key in meta) this[key] = meta[key];}
|
||||||
getAuthor () {return config.info.author;}
|
getName () {return this.name;}
|
||||||
getVersion () {return config.info.version;}
|
getAuthor () {return this.author;}
|
||||||
getDescription () {return `The Library Plugin needed for ${config.info.name} is missing. Open the Plugin Settings to download it. \n\n${config.info.description}`;}
|
getVersion () {return this.version;}
|
||||||
|
getDescription () {return `The Library Plugin needed for ${this.name} is missing. Open the Plugin Settings to download it. \n\n${this.description}`;}
|
||||||
|
|
||||||
downloadLibrary () {
|
downloadLibrary () {
|
||||||
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
||||||
|
@ -33,7 +34,7 @@ module.exports = (_ => {
|
||||||
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
||||||
if (!window.BDFDB_Global.downloadModal) {
|
if (!window.BDFDB_Global.downloadModal) {
|
||||||
window.BDFDB_Global.downloadModal = true;
|
window.BDFDB_Global.downloadModal = true;
|
||||||
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${config.info.name} is missing. Please click "Download Now" to install it.`, {
|
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${this.name} is missing. Please click "Download Now" to install it.`, {
|
||||||
confirmText: "Download Now",
|
confirmText: "Download Now",
|
||||||
cancelText: "Cancel",
|
cancelText: "Cancel",
|
||||||
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
||||||
|
@ -43,13 +44,13 @@ module.exports = (_ => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name);
|
if (!window.BDFDB_Global.pluginQueue.includes(this.name)) window.BDFDB_Global.pluginQueue.push(this.name);
|
||||||
}
|
}
|
||||||
start () {this.load();}
|
start () {this.load();}
|
||||||
stop () {}
|
stop () {}
|
||||||
getSettingsPanel () {
|
getSettingsPanel () {
|
||||||
let template = document.createElement("template");
|
let template = document.createElement("template");
|
||||||
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${config.info.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${this.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
||||||
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
||||||
return template.content.firstElementChild;
|
return template.content.firstElementChild;
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,10 +17,11 @@ module.exports = (_ => {
|
||||||
};
|
};
|
||||||
|
|
||||||
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
||||||
getName () {return config.info.name;}
|
constructor (meta) {for (let key in meta) this[key] = meta[key];}
|
||||||
getAuthor () {return config.info.author;}
|
getName () {return this.name;}
|
||||||
getVersion () {return config.info.version;}
|
getAuthor () {return this.author;}
|
||||||
getDescription () {return `The Library Plugin needed for ${config.info.name} is missing. Open the Plugin Settings to download it. \n\n${config.info.description}`;}
|
getVersion () {return this.version;}
|
||||||
|
getDescription () {return `The Library Plugin needed for ${this.name} is missing. Open the Plugin Settings to download it. \n\n${this.description}`;}
|
||||||
|
|
||||||
downloadLibrary () {
|
downloadLibrary () {
|
||||||
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
||||||
|
@ -33,7 +34,7 @@ module.exports = (_ => {
|
||||||
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
||||||
if (!window.BDFDB_Global.downloadModal) {
|
if (!window.BDFDB_Global.downloadModal) {
|
||||||
window.BDFDB_Global.downloadModal = true;
|
window.BDFDB_Global.downloadModal = true;
|
||||||
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${config.info.name} is missing. Please click "Download Now" to install it.`, {
|
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${this.name} is missing. Please click "Download Now" to install it.`, {
|
||||||
confirmText: "Download Now",
|
confirmText: "Download Now",
|
||||||
cancelText: "Cancel",
|
cancelText: "Cancel",
|
||||||
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
||||||
|
@ -43,13 +44,13 @@ module.exports = (_ => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name);
|
if (!window.BDFDB_Global.pluginQueue.includes(this.name)) window.BDFDB_Global.pluginQueue.push(this.name);
|
||||||
}
|
}
|
||||||
start () {this.load();}
|
start () {this.load();}
|
||||||
stop () {}
|
stop () {}
|
||||||
getSettingsPanel () {
|
getSettingsPanel () {
|
||||||
let template = document.createElement("template");
|
let template = document.createElement("template");
|
||||||
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${config.info.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${this.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
||||||
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
||||||
return template.content.firstElementChild;
|
return template.content.firstElementChild;
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,10 +17,11 @@ module.exports = (_ => {
|
||||||
};
|
};
|
||||||
|
|
||||||
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
||||||
getName () {return config.info.name;}
|
constructor (meta) {for (let key in meta) this[key] = meta[key];}
|
||||||
getAuthor () {return config.info.author;}
|
getName () {return this.name;}
|
||||||
getVersion () {return config.info.version;}
|
getAuthor () {return this.author;}
|
||||||
getDescription () {return `The Library Plugin needed for ${config.info.name} is missing. Open the Plugin Settings to download it. \n\n${config.info.description}`;}
|
getVersion () {return this.version;}
|
||||||
|
getDescription () {return `The Library Plugin needed for ${this.name} is missing. Open the Plugin Settings to download it. \n\n${this.description}`;}
|
||||||
|
|
||||||
downloadLibrary () {
|
downloadLibrary () {
|
||||||
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
||||||
|
@ -33,7 +34,7 @@ module.exports = (_ => {
|
||||||
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
||||||
if (!window.BDFDB_Global.downloadModal) {
|
if (!window.BDFDB_Global.downloadModal) {
|
||||||
window.BDFDB_Global.downloadModal = true;
|
window.BDFDB_Global.downloadModal = true;
|
||||||
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${config.info.name} is missing. Please click "Download Now" to install it.`, {
|
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${this.name} is missing. Please click "Download Now" to install it.`, {
|
||||||
confirmText: "Download Now",
|
confirmText: "Download Now",
|
||||||
cancelText: "Cancel",
|
cancelText: "Cancel",
|
||||||
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
||||||
|
@ -43,13 +44,13 @@ module.exports = (_ => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name);
|
if (!window.BDFDB_Global.pluginQueue.includes(this.name)) window.BDFDB_Global.pluginQueue.push(this.name);
|
||||||
}
|
}
|
||||||
start () {this.load();}
|
start () {this.load();}
|
||||||
stop () {}
|
stop () {}
|
||||||
getSettingsPanel () {
|
getSettingsPanel () {
|
||||||
let template = document.createElement("template");
|
let template = document.createElement("template");
|
||||||
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${config.info.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${this.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
||||||
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
||||||
return template.content.firstElementChild;
|
return template.content.firstElementChild;
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,10 +17,11 @@ module.exports = (_ => {
|
||||||
};
|
};
|
||||||
|
|
||||||
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
||||||
getName () {return config.info.name;}
|
constructor (meta) {for (let key in meta) this[key] = meta[key];}
|
||||||
getAuthor () {return config.info.author;}
|
getName () {return this.name;}
|
||||||
getVersion () {return config.info.version;}
|
getAuthor () {return this.author;}
|
||||||
getDescription () {return `The Library Plugin needed for ${config.info.name} is missing. Open the Plugin Settings to download it. \n\n${config.info.description}`;}
|
getVersion () {return this.version;}
|
||||||
|
getDescription () {return `The Library Plugin needed for ${this.name} is missing. Open the Plugin Settings to download it. \n\n${this.description}`;}
|
||||||
|
|
||||||
downloadLibrary () {
|
downloadLibrary () {
|
||||||
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
||||||
|
@ -33,7 +34,7 @@ module.exports = (_ => {
|
||||||
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
||||||
if (!window.BDFDB_Global.downloadModal) {
|
if (!window.BDFDB_Global.downloadModal) {
|
||||||
window.BDFDB_Global.downloadModal = true;
|
window.BDFDB_Global.downloadModal = true;
|
||||||
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${config.info.name} is missing. Please click "Download Now" to install it.`, {
|
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${this.name} is missing. Please click "Download Now" to install it.`, {
|
||||||
confirmText: "Download Now",
|
confirmText: "Download Now",
|
||||||
cancelText: "Cancel",
|
cancelText: "Cancel",
|
||||||
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
||||||
|
@ -43,13 +44,13 @@ module.exports = (_ => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name);
|
if (!window.BDFDB_Global.pluginQueue.includes(this.name)) window.BDFDB_Global.pluginQueue.push(this.name);
|
||||||
}
|
}
|
||||||
start () {this.load();}
|
start () {this.load();}
|
||||||
stop () {}
|
stop () {}
|
||||||
getSettingsPanel () {
|
getSettingsPanel () {
|
||||||
let template = document.createElement("template");
|
let template = document.createElement("template");
|
||||||
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${config.info.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${this.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
||||||
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
||||||
return template.content.firstElementChild;
|
return template.content.firstElementChild;
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,10 +17,11 @@ module.exports = (_ => {
|
||||||
};
|
};
|
||||||
|
|
||||||
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
||||||
getName () {return config.info.name;}
|
constructor (meta) {for (let key in meta) this[key] = meta[key];}
|
||||||
getAuthor () {return config.info.author;}
|
getName () {return this.name;}
|
||||||
getVersion () {return config.info.version;}
|
getAuthor () {return this.author;}
|
||||||
getDescription () {return `The Library Plugin needed for ${config.info.name} is missing. Open the Plugin Settings to download it. \n\n${config.info.description}`;}
|
getVersion () {return this.version;}
|
||||||
|
getDescription () {return `The Library Plugin needed for ${this.name} is missing. Open the Plugin Settings to download it. \n\n${this.description}`;}
|
||||||
|
|
||||||
downloadLibrary () {
|
downloadLibrary () {
|
||||||
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
||||||
|
@ -33,7 +34,7 @@ module.exports = (_ => {
|
||||||
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
||||||
if (!window.BDFDB_Global.downloadModal) {
|
if (!window.BDFDB_Global.downloadModal) {
|
||||||
window.BDFDB_Global.downloadModal = true;
|
window.BDFDB_Global.downloadModal = true;
|
||||||
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${config.info.name} is missing. Please click "Download Now" to install it.`, {
|
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${this.name} is missing. Please click "Download Now" to install it.`, {
|
||||||
confirmText: "Download Now",
|
confirmText: "Download Now",
|
||||||
cancelText: "Cancel",
|
cancelText: "Cancel",
|
||||||
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
||||||
|
@ -43,13 +44,13 @@ module.exports = (_ => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name);
|
if (!window.BDFDB_Global.pluginQueue.includes(this.name)) window.BDFDB_Global.pluginQueue.push(this.name);
|
||||||
}
|
}
|
||||||
start () {this.load();}
|
start () {this.load();}
|
||||||
stop () {}
|
stop () {}
|
||||||
getSettingsPanel () {
|
getSettingsPanel () {
|
||||||
let template = document.createElement("template");
|
let template = document.createElement("template");
|
||||||
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${config.info.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${this.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
||||||
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
||||||
return template.content.firstElementChild;
|
return template.content.firstElementChild;
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,10 +17,11 @@ module.exports = (_ => {
|
||||||
};
|
};
|
||||||
|
|
||||||
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
||||||
getName () {return config.info.name;}
|
constructor (meta) {for (let key in meta) this[key] = meta[key];}
|
||||||
getAuthor () {return config.info.author;}
|
getName () {return this.name;}
|
||||||
getVersion () {return config.info.version;}
|
getAuthor () {return this.author;}
|
||||||
getDescription () {return `The Library Plugin needed for ${config.info.name} is missing. Open the Plugin Settings to download it. \n\n${config.info.description}`;}
|
getVersion () {return this.version;}
|
||||||
|
getDescription () {return `The Library Plugin needed for ${this.name} is missing. Open the Plugin Settings to download it. \n\n${this.description}`;}
|
||||||
|
|
||||||
downloadLibrary () {
|
downloadLibrary () {
|
||||||
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
||||||
|
@ -33,7 +34,7 @@ module.exports = (_ => {
|
||||||
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
||||||
if (!window.BDFDB_Global.downloadModal) {
|
if (!window.BDFDB_Global.downloadModal) {
|
||||||
window.BDFDB_Global.downloadModal = true;
|
window.BDFDB_Global.downloadModal = true;
|
||||||
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${config.info.name} is missing. Please click "Download Now" to install it.`, {
|
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${this.name} is missing. Please click "Download Now" to install it.`, {
|
||||||
confirmText: "Download Now",
|
confirmText: "Download Now",
|
||||||
cancelText: "Cancel",
|
cancelText: "Cancel",
|
||||||
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
||||||
|
@ -43,13 +44,13 @@ module.exports = (_ => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name);
|
if (!window.BDFDB_Global.pluginQueue.includes(this.name)) window.BDFDB_Global.pluginQueue.push(this.name);
|
||||||
}
|
}
|
||||||
start () {this.load();}
|
start () {this.load();}
|
||||||
stop () {}
|
stop () {}
|
||||||
getSettingsPanel () {
|
getSettingsPanel () {
|
||||||
let template = document.createElement("template");
|
let template = document.createElement("template");
|
||||||
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${config.info.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${this.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
||||||
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
||||||
return template.content.firstElementChild;
|
return template.content.firstElementChild;
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,10 +17,11 @@ module.exports = (_ => {
|
||||||
};
|
};
|
||||||
|
|
||||||
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
||||||
getName () {return config.info.name;}
|
constructor (meta) {for (let key in meta) this[key] = meta[key];}
|
||||||
getAuthor () {return config.info.author;}
|
getName () {return this.name;}
|
||||||
getVersion () {return config.info.version;}
|
getAuthor () {return this.author;}
|
||||||
getDescription () {return `The Library Plugin needed for ${config.info.name} is missing. Open the Plugin Settings to download it. \n\n${config.info.description}`;}
|
getVersion () {return this.version;}
|
||||||
|
getDescription () {return `The Library Plugin needed for ${this.name} is missing. Open the Plugin Settings to download it. \n\n${this.description}`;}
|
||||||
|
|
||||||
downloadLibrary () {
|
downloadLibrary () {
|
||||||
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
||||||
|
@ -33,7 +34,7 @@ module.exports = (_ => {
|
||||||
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
||||||
if (!window.BDFDB_Global.downloadModal) {
|
if (!window.BDFDB_Global.downloadModal) {
|
||||||
window.BDFDB_Global.downloadModal = true;
|
window.BDFDB_Global.downloadModal = true;
|
||||||
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${config.info.name} is missing. Please click "Download Now" to install it.`, {
|
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${this.name} is missing. Please click "Download Now" to install it.`, {
|
||||||
confirmText: "Download Now",
|
confirmText: "Download Now",
|
||||||
cancelText: "Cancel",
|
cancelText: "Cancel",
|
||||||
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
||||||
|
@ -43,13 +44,13 @@ module.exports = (_ => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name);
|
if (!window.BDFDB_Global.pluginQueue.includes(this.name)) window.BDFDB_Global.pluginQueue.push(this.name);
|
||||||
}
|
}
|
||||||
start () {this.load();}
|
start () {this.load();}
|
||||||
stop () {}
|
stop () {}
|
||||||
getSettingsPanel () {
|
getSettingsPanel () {
|
||||||
let template = document.createElement("template");
|
let template = document.createElement("template");
|
||||||
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${config.info.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${this.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
||||||
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
||||||
return template.content.firstElementChild;
|
return template.content.firstElementChild;
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,10 +17,11 @@ module.exports = (_ => {
|
||||||
};
|
};
|
||||||
|
|
||||||
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
||||||
getName () {return config.info.name;}
|
constructor (meta) {for (let key in meta) this[key] = meta[key];}
|
||||||
getAuthor () {return config.info.author;}
|
getName () {return this.name;}
|
||||||
getVersion () {return config.info.version;}
|
getAuthor () {return this.author;}
|
||||||
getDescription () {return `The Library Plugin needed for ${config.info.name} is missing. Open the Plugin Settings to download it. \n\n${config.info.description}`;}
|
getVersion () {return this.version;}
|
||||||
|
getDescription () {return `The Library Plugin needed for ${this.name} is missing. Open the Plugin Settings to download it. \n\n${this.description}`;}
|
||||||
|
|
||||||
downloadLibrary () {
|
downloadLibrary () {
|
||||||
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
||||||
|
@ -33,7 +34,7 @@ module.exports = (_ => {
|
||||||
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
||||||
if (!window.BDFDB_Global.downloadModal) {
|
if (!window.BDFDB_Global.downloadModal) {
|
||||||
window.BDFDB_Global.downloadModal = true;
|
window.BDFDB_Global.downloadModal = true;
|
||||||
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${config.info.name} is missing. Please click "Download Now" to install it.`, {
|
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${this.name} is missing. Please click "Download Now" to install it.`, {
|
||||||
confirmText: "Download Now",
|
confirmText: "Download Now",
|
||||||
cancelText: "Cancel",
|
cancelText: "Cancel",
|
||||||
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
||||||
|
@ -43,13 +44,13 @@ module.exports = (_ => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name);
|
if (!window.BDFDB_Global.pluginQueue.includes(this.name)) window.BDFDB_Global.pluginQueue.push(this.name);
|
||||||
}
|
}
|
||||||
start () {this.load();}
|
start () {this.load();}
|
||||||
stop () {}
|
stop () {}
|
||||||
getSettingsPanel () {
|
getSettingsPanel () {
|
||||||
let template = document.createElement("template");
|
let template = document.createElement("template");
|
||||||
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${config.info.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${this.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
||||||
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
||||||
return template.content.firstElementChild;
|
return template.content.firstElementChild;
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,10 +17,11 @@ module.exports = (_ => {
|
||||||
};
|
};
|
||||||
|
|
||||||
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
||||||
getName () {return config.info.name;}
|
constructor (meta) {for (let key in meta) this[key] = meta[key];}
|
||||||
getAuthor () {return config.info.author;}
|
getName () {return this.name;}
|
||||||
getVersion () {return config.info.version;}
|
getAuthor () {return this.author;}
|
||||||
getDescription () {return `The Library Plugin needed for ${config.info.name} is missing. Open the Plugin Settings to download it. \n\n${config.info.description}`;}
|
getVersion () {return this.version;}
|
||||||
|
getDescription () {return `The Library Plugin needed for ${this.name} is missing. Open the Plugin Settings to download it. \n\n${this.description}`;}
|
||||||
|
|
||||||
downloadLibrary () {
|
downloadLibrary () {
|
||||||
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
||||||
|
@ -33,7 +34,7 @@ module.exports = (_ => {
|
||||||
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
||||||
if (!window.BDFDB_Global.downloadModal) {
|
if (!window.BDFDB_Global.downloadModal) {
|
||||||
window.BDFDB_Global.downloadModal = true;
|
window.BDFDB_Global.downloadModal = true;
|
||||||
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${config.info.name} is missing. Please click "Download Now" to install it.`, {
|
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${this.name} is missing. Please click "Download Now" to install it.`, {
|
||||||
confirmText: "Download Now",
|
confirmText: "Download Now",
|
||||||
cancelText: "Cancel",
|
cancelText: "Cancel",
|
||||||
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
||||||
|
@ -43,13 +44,13 @@ module.exports = (_ => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name);
|
if (!window.BDFDB_Global.pluginQueue.includes(this.name)) window.BDFDB_Global.pluginQueue.push(this.name);
|
||||||
}
|
}
|
||||||
start () {this.load();}
|
start () {this.load();}
|
||||||
stop () {}
|
stop () {}
|
||||||
getSettingsPanel () {
|
getSettingsPanel () {
|
||||||
let template = document.createElement("template");
|
let template = document.createElement("template");
|
||||||
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${config.info.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${this.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
||||||
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
||||||
return template.content.firstElementChild;
|
return template.content.firstElementChild;
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,10 +17,11 @@ module.exports = (_ => {
|
||||||
};
|
};
|
||||||
|
|
||||||
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
||||||
getName () {return config.info.name;}
|
constructor (meta) {for (let key in meta) this[key] = meta[key];}
|
||||||
getAuthor () {return config.info.author;}
|
getName () {return this.name;}
|
||||||
getVersion () {return config.info.version;}
|
getAuthor () {return this.author;}
|
||||||
getDescription () {return `The Library Plugin needed for ${config.info.name} is missing. Open the Plugin Settings to download it. \n\n${config.info.description}`;}
|
getVersion () {return this.version;}
|
||||||
|
getDescription () {return `The Library Plugin needed for ${this.name} is missing. Open the Plugin Settings to download it. \n\n${this.description}`;}
|
||||||
|
|
||||||
downloadLibrary () {
|
downloadLibrary () {
|
||||||
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
||||||
|
@ -33,7 +34,7 @@ module.exports = (_ => {
|
||||||
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
||||||
if (!window.BDFDB_Global.downloadModal) {
|
if (!window.BDFDB_Global.downloadModal) {
|
||||||
window.BDFDB_Global.downloadModal = true;
|
window.BDFDB_Global.downloadModal = true;
|
||||||
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${config.info.name} is missing. Please click "Download Now" to install it.`, {
|
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${this.name} is missing. Please click "Download Now" to install it.`, {
|
||||||
confirmText: "Download Now",
|
confirmText: "Download Now",
|
||||||
cancelText: "Cancel",
|
cancelText: "Cancel",
|
||||||
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
||||||
|
@ -43,13 +44,13 @@ module.exports = (_ => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name);
|
if (!window.BDFDB_Global.pluginQueue.includes(this.name)) window.BDFDB_Global.pluginQueue.push(this.name);
|
||||||
}
|
}
|
||||||
start () {this.load();}
|
start () {this.load();}
|
||||||
stop () {}
|
stop () {}
|
||||||
getSettingsPanel () {
|
getSettingsPanel () {
|
||||||
let template = document.createElement("template");
|
let template = document.createElement("template");
|
||||||
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${config.info.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${this.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
||||||
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
||||||
return template.content.firstElementChild;
|
return template.content.firstElementChild;
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,10 +17,11 @@ module.exports = (_ => {
|
||||||
};
|
};
|
||||||
|
|
||||||
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
||||||
getName () {return config.info.name;}
|
constructor (meta) {for (let key in meta) this[key] = meta[key];}
|
||||||
getAuthor () {return config.info.author;}
|
getName () {return this.name;}
|
||||||
getVersion () {return config.info.version;}
|
getAuthor () {return this.author;}
|
||||||
getDescription () {return `The Library Plugin needed for ${config.info.name} is missing. Open the Plugin Settings to download it. \n\n${config.info.description}`;}
|
getVersion () {return this.version;}
|
||||||
|
getDescription () {return `The Library Plugin needed for ${this.name} is missing. Open the Plugin Settings to download it. \n\n${this.description}`;}
|
||||||
|
|
||||||
downloadLibrary () {
|
downloadLibrary () {
|
||||||
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
||||||
|
@ -33,7 +34,7 @@ module.exports = (_ => {
|
||||||
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
||||||
if (!window.BDFDB_Global.downloadModal) {
|
if (!window.BDFDB_Global.downloadModal) {
|
||||||
window.BDFDB_Global.downloadModal = true;
|
window.BDFDB_Global.downloadModal = true;
|
||||||
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${config.info.name} is missing. Please click "Download Now" to install it.`, {
|
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${this.name} is missing. Please click "Download Now" to install it.`, {
|
||||||
confirmText: "Download Now",
|
confirmText: "Download Now",
|
||||||
cancelText: "Cancel",
|
cancelText: "Cancel",
|
||||||
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
||||||
|
@ -43,13 +44,13 @@ module.exports = (_ => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name);
|
if (!window.BDFDB_Global.pluginQueue.includes(this.name)) window.BDFDB_Global.pluginQueue.push(this.name);
|
||||||
}
|
}
|
||||||
start () {this.load();}
|
start () {this.load();}
|
||||||
stop () {}
|
stop () {}
|
||||||
getSettingsPanel () {
|
getSettingsPanel () {
|
||||||
let template = document.createElement("template");
|
let template = document.createElement("template");
|
||||||
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${config.info.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${this.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
||||||
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
||||||
return template.content.firstElementChild;
|
return template.content.firstElementChild;
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,10 +17,11 @@ module.exports = (_ => {
|
||||||
};
|
};
|
||||||
|
|
||||||
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
||||||
getName () {return config.info.name;}
|
constructor (meta) {for (let key in meta) this[key] = meta[key];}
|
||||||
getAuthor () {return config.info.author;}
|
getName () {return this.name;}
|
||||||
getVersion () {return config.info.version;}
|
getAuthor () {return this.author;}
|
||||||
getDescription () {return `The Library Plugin needed for ${config.info.name} is missing. Open the Plugin Settings to download it. \n\n${config.info.description}`;}
|
getVersion () {return this.version;}
|
||||||
|
getDescription () {return `The Library Plugin needed for ${this.name} is missing. Open the Plugin Settings to download it. \n\n${this.description}`;}
|
||||||
|
|
||||||
downloadLibrary () {
|
downloadLibrary () {
|
||||||
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
||||||
|
@ -33,7 +34,7 @@ module.exports = (_ => {
|
||||||
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
||||||
if (!window.BDFDB_Global.downloadModal) {
|
if (!window.BDFDB_Global.downloadModal) {
|
||||||
window.BDFDB_Global.downloadModal = true;
|
window.BDFDB_Global.downloadModal = true;
|
||||||
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${config.info.name} is missing. Please click "Download Now" to install it.`, {
|
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${this.name} is missing. Please click "Download Now" to install it.`, {
|
||||||
confirmText: "Download Now",
|
confirmText: "Download Now",
|
||||||
cancelText: "Cancel",
|
cancelText: "Cancel",
|
||||||
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
||||||
|
@ -43,13 +44,13 @@ module.exports = (_ => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name);
|
if (!window.BDFDB_Global.pluginQueue.includes(this.name)) window.BDFDB_Global.pluginQueue.push(this.name);
|
||||||
}
|
}
|
||||||
start () {this.load();}
|
start () {this.load();}
|
||||||
stop () {}
|
stop () {}
|
||||||
getSettingsPanel () {
|
getSettingsPanel () {
|
||||||
let template = document.createElement("template");
|
let template = document.createElement("template");
|
||||||
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${config.info.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${this.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
||||||
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
||||||
return template.content.firstElementChild;
|
return template.content.firstElementChild;
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,10 +17,11 @@ module.exports = (_ => {
|
||||||
};
|
};
|
||||||
|
|
||||||
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
||||||
getName () {return config.info.name;}
|
constructor (meta) {for (let key in meta) this[key] = meta[key];}
|
||||||
getAuthor () {return config.info.author;}
|
getName () {return this.name;}
|
||||||
getVersion () {return config.info.version;}
|
getAuthor () {return this.author;}
|
||||||
getDescription () {return `The Library Plugin needed for ${config.info.name} is missing. Open the Plugin Settings to download it. \n\n${config.info.description}`;}
|
getVersion () {return this.version;}
|
||||||
|
getDescription () {return `The Library Plugin needed for ${this.name} is missing. Open the Plugin Settings to download it. \n\n${this.description}`;}
|
||||||
|
|
||||||
downloadLibrary () {
|
downloadLibrary () {
|
||||||
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
||||||
|
@ -33,7 +34,7 @@ module.exports = (_ => {
|
||||||
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
||||||
if (!window.BDFDB_Global.downloadModal) {
|
if (!window.BDFDB_Global.downloadModal) {
|
||||||
window.BDFDB_Global.downloadModal = true;
|
window.BDFDB_Global.downloadModal = true;
|
||||||
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${config.info.name} is missing. Please click "Download Now" to install it.`, {
|
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${this.name} is missing. Please click "Download Now" to install it.`, {
|
||||||
confirmText: "Download Now",
|
confirmText: "Download Now",
|
||||||
cancelText: "Cancel",
|
cancelText: "Cancel",
|
||||||
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
||||||
|
@ -43,13 +44,13 @@ module.exports = (_ => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name);
|
if (!window.BDFDB_Global.pluginQueue.includes(this.name)) window.BDFDB_Global.pluginQueue.push(this.name);
|
||||||
}
|
}
|
||||||
start () {this.load();}
|
start () {this.load();}
|
||||||
stop () {}
|
stop () {}
|
||||||
getSettingsPanel () {
|
getSettingsPanel () {
|
||||||
let template = document.createElement("template");
|
let template = document.createElement("template");
|
||||||
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${config.info.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${this.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
||||||
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
||||||
return template.content.firstElementChild;
|
return template.content.firstElementChild;
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,10 +17,11 @@ module.exports = (_ => {
|
||||||
};
|
};
|
||||||
|
|
||||||
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
||||||
getName () {return config.info.name;}
|
constructor (meta) {for (let key in meta) this[key] = meta[key];}
|
||||||
getAuthor () {return config.info.author;}
|
getName () {return this.name;}
|
||||||
getVersion () {return config.info.version;}
|
getAuthor () {return this.author;}
|
||||||
getDescription () {return `The Library Plugin needed for ${config.info.name} is missing. Open the Plugin Settings to download it. \n\n${config.info.description}`;}
|
getVersion () {return this.version;}
|
||||||
|
getDescription () {return `The Library Plugin needed for ${this.name} is missing. Open the Plugin Settings to download it. \n\n${this.description}`;}
|
||||||
|
|
||||||
downloadLibrary () {
|
downloadLibrary () {
|
||||||
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
||||||
|
@ -33,7 +34,7 @@ module.exports = (_ => {
|
||||||
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
||||||
if (!window.BDFDB_Global.downloadModal) {
|
if (!window.BDFDB_Global.downloadModal) {
|
||||||
window.BDFDB_Global.downloadModal = true;
|
window.BDFDB_Global.downloadModal = true;
|
||||||
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${config.info.name} is missing. Please click "Download Now" to install it.`, {
|
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${this.name} is missing. Please click "Download Now" to install it.`, {
|
||||||
confirmText: "Download Now",
|
confirmText: "Download Now",
|
||||||
cancelText: "Cancel",
|
cancelText: "Cancel",
|
||||||
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
||||||
|
@ -43,13 +44,13 @@ module.exports = (_ => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name);
|
if (!window.BDFDB_Global.pluginQueue.includes(this.name)) window.BDFDB_Global.pluginQueue.push(this.name);
|
||||||
}
|
}
|
||||||
start () {this.load();}
|
start () {this.load();}
|
||||||
stop () {}
|
stop () {}
|
||||||
getSettingsPanel () {
|
getSettingsPanel () {
|
||||||
let template = document.createElement("template");
|
let template = document.createElement("template");
|
||||||
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${config.info.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${this.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
||||||
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
||||||
return template.content.firstElementChild;
|
return template.content.firstElementChild;
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,10 +17,11 @@ module.exports = (_ => {
|
||||||
};
|
};
|
||||||
|
|
||||||
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
||||||
getName () {return config.info.name;}
|
constructor (meta) {for (let key in meta) this[key] = meta[key];}
|
||||||
getAuthor () {return config.info.author;}
|
getName () {return this.name;}
|
||||||
getVersion () {return config.info.version;}
|
getAuthor () {return this.author;}
|
||||||
getDescription () {return `The Library Plugin needed for ${config.info.name} is missing. Open the Plugin Settings to download it. \n\n${config.info.description}`;}
|
getVersion () {return this.version;}
|
||||||
|
getDescription () {return `The Library Plugin needed for ${this.name} is missing. Open the Plugin Settings to download it. \n\n${this.description}`;}
|
||||||
|
|
||||||
downloadLibrary () {
|
downloadLibrary () {
|
||||||
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
||||||
|
@ -33,7 +34,7 @@ module.exports = (_ => {
|
||||||
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
||||||
if (!window.BDFDB_Global.downloadModal) {
|
if (!window.BDFDB_Global.downloadModal) {
|
||||||
window.BDFDB_Global.downloadModal = true;
|
window.BDFDB_Global.downloadModal = true;
|
||||||
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${config.info.name} is missing. Please click "Download Now" to install it.`, {
|
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${this.name} is missing. Please click "Download Now" to install it.`, {
|
||||||
confirmText: "Download Now",
|
confirmText: "Download Now",
|
||||||
cancelText: "Cancel",
|
cancelText: "Cancel",
|
||||||
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
||||||
|
@ -43,13 +44,13 @@ module.exports = (_ => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name);
|
if (!window.BDFDB_Global.pluginQueue.includes(this.name)) window.BDFDB_Global.pluginQueue.push(this.name);
|
||||||
}
|
}
|
||||||
start () {this.load();}
|
start () {this.load();}
|
||||||
stop () {}
|
stop () {}
|
||||||
getSettingsPanel () {
|
getSettingsPanel () {
|
||||||
let template = document.createElement("template");
|
let template = document.createElement("template");
|
||||||
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${config.info.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${this.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
||||||
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
||||||
return template.content.firstElementChild;
|
return template.content.firstElementChild;
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,10 +17,11 @@ module.exports = (_ => {
|
||||||
};
|
};
|
||||||
|
|
||||||
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
||||||
getName () {return config.info.name;}
|
constructor (meta) {for (let key in meta) this[key] = meta[key];}
|
||||||
getAuthor () {return config.info.author;}
|
getName () {return this.name;}
|
||||||
getVersion () {return config.info.version;}
|
getAuthor () {return this.author;}
|
||||||
getDescription () {return `The Library Plugin needed for ${config.info.name} is missing. Open the Plugin Settings to download it. \n\n${config.info.description}`;}
|
getVersion () {return this.version;}
|
||||||
|
getDescription () {return `The Library Plugin needed for ${this.name} is missing. Open the Plugin Settings to download it. \n\n${this.description}`;}
|
||||||
|
|
||||||
downloadLibrary () {
|
downloadLibrary () {
|
||||||
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
||||||
|
@ -33,7 +34,7 @@ module.exports = (_ => {
|
||||||
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
||||||
if (!window.BDFDB_Global.downloadModal) {
|
if (!window.BDFDB_Global.downloadModal) {
|
||||||
window.BDFDB_Global.downloadModal = true;
|
window.BDFDB_Global.downloadModal = true;
|
||||||
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${config.info.name} is missing. Please click "Download Now" to install it.`, {
|
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${this.name} is missing. Please click "Download Now" to install it.`, {
|
||||||
confirmText: "Download Now",
|
confirmText: "Download Now",
|
||||||
cancelText: "Cancel",
|
cancelText: "Cancel",
|
||||||
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
||||||
|
@ -43,13 +44,13 @@ module.exports = (_ => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name);
|
if (!window.BDFDB_Global.pluginQueue.includes(this.name)) window.BDFDB_Global.pluginQueue.push(this.name);
|
||||||
}
|
}
|
||||||
start () {this.load();}
|
start () {this.load();}
|
||||||
stop () {}
|
stop () {}
|
||||||
getSettingsPanel () {
|
getSettingsPanel () {
|
||||||
let template = document.createElement("template");
|
let template = document.createElement("template");
|
||||||
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${config.info.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${this.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
||||||
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
||||||
return template.content.firstElementChild;
|
return template.content.firstElementChild;
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,10 +17,11 @@ module.exports = (_ => {
|
||||||
};
|
};
|
||||||
|
|
||||||
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
||||||
getName () {return config.info.name;}
|
constructor (meta) {for (let key in meta) this[key] = meta[key];}
|
||||||
getAuthor () {return config.info.author;}
|
getName () {return this.name;}
|
||||||
getVersion () {return config.info.version;}
|
getAuthor () {return this.author;}
|
||||||
getDescription () {return `The Library Plugin needed for ${config.info.name} is missing. Open the Plugin Settings to download it. \n\n${config.info.description}`;}
|
getVersion () {return this.version;}
|
||||||
|
getDescription () {return `The Library Plugin needed for ${this.name} is missing. Open the Plugin Settings to download it. \n\n${this.description}`;}
|
||||||
|
|
||||||
downloadLibrary () {
|
downloadLibrary () {
|
||||||
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
||||||
|
@ -33,7 +34,7 @@ module.exports = (_ => {
|
||||||
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
||||||
if (!window.BDFDB_Global.downloadModal) {
|
if (!window.BDFDB_Global.downloadModal) {
|
||||||
window.BDFDB_Global.downloadModal = true;
|
window.BDFDB_Global.downloadModal = true;
|
||||||
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${config.info.name} is missing. Please click "Download Now" to install it.`, {
|
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${this.name} is missing. Please click "Download Now" to install it.`, {
|
||||||
confirmText: "Download Now",
|
confirmText: "Download Now",
|
||||||
cancelText: "Cancel",
|
cancelText: "Cancel",
|
||||||
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
||||||
|
@ -43,13 +44,13 @@ module.exports = (_ => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name);
|
if (!window.BDFDB_Global.pluginQueue.includes(this.name)) window.BDFDB_Global.pluginQueue.push(this.name);
|
||||||
}
|
}
|
||||||
start () {this.load();}
|
start () {this.load();}
|
||||||
stop () {}
|
stop () {}
|
||||||
getSettingsPanel () {
|
getSettingsPanel () {
|
||||||
let template = document.createElement("template");
|
let template = document.createElement("template");
|
||||||
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${config.info.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${this.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
||||||
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
||||||
return template.content.firstElementChild;
|
return template.content.firstElementChild;
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,10 +17,11 @@ module.exports = (_ => {
|
||||||
};
|
};
|
||||||
|
|
||||||
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
||||||
getName () {return config.info.name;}
|
constructor (meta) {for (let key in meta) this[key] = meta[key];}
|
||||||
getAuthor () {return config.info.author;}
|
getName () {return this.name;}
|
||||||
getVersion () {return config.info.version;}
|
getAuthor () {return this.author;}
|
||||||
getDescription () {return `The Library Plugin needed for ${config.info.name} is missing. Open the Plugin Settings to download it. \n\n${config.info.description}`;}
|
getVersion () {return this.version;}
|
||||||
|
getDescription () {return `The Library Plugin needed for ${this.name} is missing. Open the Plugin Settings to download it. \n\n${this.description}`;}
|
||||||
|
|
||||||
downloadLibrary () {
|
downloadLibrary () {
|
||||||
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
||||||
|
@ -33,7 +34,7 @@ module.exports = (_ => {
|
||||||
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
||||||
if (!window.BDFDB_Global.downloadModal) {
|
if (!window.BDFDB_Global.downloadModal) {
|
||||||
window.BDFDB_Global.downloadModal = true;
|
window.BDFDB_Global.downloadModal = true;
|
||||||
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${config.info.name} is missing. Please click "Download Now" to install it.`, {
|
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${this.name} is missing. Please click "Download Now" to install it.`, {
|
||||||
confirmText: "Download Now",
|
confirmText: "Download Now",
|
||||||
cancelText: "Cancel",
|
cancelText: "Cancel",
|
||||||
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
||||||
|
@ -43,13 +44,13 @@ module.exports = (_ => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name);
|
if (!window.BDFDB_Global.pluginQueue.includes(this.name)) window.BDFDB_Global.pluginQueue.push(this.name);
|
||||||
}
|
}
|
||||||
start () {this.load();}
|
start () {this.load();}
|
||||||
stop () {}
|
stop () {}
|
||||||
getSettingsPanel () {
|
getSettingsPanel () {
|
||||||
let template = document.createElement("template");
|
let template = document.createElement("template");
|
||||||
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${config.info.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${this.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
||||||
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
||||||
return template.content.firstElementChild;
|
return template.content.firstElementChild;
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,10 +17,11 @@ module.exports = (_ => {
|
||||||
};
|
};
|
||||||
|
|
||||||
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
||||||
getName () {return config.info.name;}
|
constructor (meta) {for (let key in meta) this[key] = meta[key];}
|
||||||
getAuthor () {return config.info.author;}
|
getName () {return this.name;}
|
||||||
getVersion () {return config.info.version;}
|
getAuthor () {return this.author;}
|
||||||
getDescription () {return `The Library Plugin needed for ${config.info.name} is missing. Open the Plugin Settings to download it. \n\n${config.info.description}`;}
|
getVersion () {return this.version;}
|
||||||
|
getDescription () {return `The Library Plugin needed for ${this.name} is missing. Open the Plugin Settings to download it. \n\n${this.description}`;}
|
||||||
|
|
||||||
downloadLibrary () {
|
downloadLibrary () {
|
||||||
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
||||||
|
@ -33,7 +34,7 @@ module.exports = (_ => {
|
||||||
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
||||||
if (!window.BDFDB_Global.downloadModal) {
|
if (!window.BDFDB_Global.downloadModal) {
|
||||||
window.BDFDB_Global.downloadModal = true;
|
window.BDFDB_Global.downloadModal = true;
|
||||||
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${config.info.name} is missing. Please click "Download Now" to install it.`, {
|
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${this.name} is missing. Please click "Download Now" to install it.`, {
|
||||||
confirmText: "Download Now",
|
confirmText: "Download Now",
|
||||||
cancelText: "Cancel",
|
cancelText: "Cancel",
|
||||||
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
||||||
|
@ -43,13 +44,13 @@ module.exports = (_ => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name);
|
if (!window.BDFDB_Global.pluginQueue.includes(this.name)) window.BDFDB_Global.pluginQueue.push(this.name);
|
||||||
}
|
}
|
||||||
start () {this.load();}
|
start () {this.load();}
|
||||||
stop () {}
|
stop () {}
|
||||||
getSettingsPanel () {
|
getSettingsPanel () {
|
||||||
let template = document.createElement("template");
|
let template = document.createElement("template");
|
||||||
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${config.info.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${this.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
||||||
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
||||||
return template.content.firstElementChild;
|
return template.content.firstElementChild;
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,10 +17,11 @@ module.exports = (_ => {
|
||||||
};
|
};
|
||||||
|
|
||||||
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
||||||
getName () {return config.info.name;}
|
constructor (meta) {for (let key in meta) this[key] = meta[key];}
|
||||||
getAuthor () {return config.info.author;}
|
getName () {return this.name;}
|
||||||
getVersion () {return config.info.version;}
|
getAuthor () {return this.author;}
|
||||||
getDescription () {return `The Library Plugin needed for ${config.info.name} is missing. Open the Plugin Settings to download it. \n\n${config.info.description}`;}
|
getVersion () {return this.version;}
|
||||||
|
getDescription () {return `The Library Plugin needed for ${this.name} is missing. Open the Plugin Settings to download it. \n\n${this.description}`;}
|
||||||
|
|
||||||
downloadLibrary () {
|
downloadLibrary () {
|
||||||
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
||||||
|
@ -33,7 +34,7 @@ module.exports = (_ => {
|
||||||
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
||||||
if (!window.BDFDB_Global.downloadModal) {
|
if (!window.BDFDB_Global.downloadModal) {
|
||||||
window.BDFDB_Global.downloadModal = true;
|
window.BDFDB_Global.downloadModal = true;
|
||||||
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${config.info.name} is missing. Please click "Download Now" to install it.`, {
|
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${this.name} is missing. Please click "Download Now" to install it.`, {
|
||||||
confirmText: "Download Now",
|
confirmText: "Download Now",
|
||||||
cancelText: "Cancel",
|
cancelText: "Cancel",
|
||||||
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
||||||
|
@ -43,13 +44,13 @@ module.exports = (_ => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name);
|
if (!window.BDFDB_Global.pluginQueue.includes(this.name)) window.BDFDB_Global.pluginQueue.push(this.name);
|
||||||
}
|
}
|
||||||
start () {this.load();}
|
start () {this.load();}
|
||||||
stop () {}
|
stop () {}
|
||||||
getSettingsPanel () {
|
getSettingsPanel () {
|
||||||
let template = document.createElement("template");
|
let template = document.createElement("template");
|
||||||
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${config.info.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${this.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
||||||
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
||||||
return template.content.firstElementChild;
|
return template.content.firstElementChild;
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,10 +17,11 @@ module.exports = (_ => {
|
||||||
};
|
};
|
||||||
|
|
||||||
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
||||||
getName () {return config.info.name;}
|
constructor (meta) {for (let key in meta) this[key] = meta[key];}
|
||||||
getAuthor () {return config.info.author;}
|
getName () {return this.name;}
|
||||||
getVersion () {return config.info.version;}
|
getAuthor () {return this.author;}
|
||||||
getDescription () {return `The Library Plugin needed for ${config.info.name} is missing. Open the Plugin Settings to download it. \n\n${config.info.description}`;}
|
getVersion () {return this.version;}
|
||||||
|
getDescription () {return `The Library Plugin needed for ${this.name} is missing. Open the Plugin Settings to download it. \n\n${this.description}`;}
|
||||||
|
|
||||||
downloadLibrary () {
|
downloadLibrary () {
|
||||||
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
||||||
|
@ -33,7 +34,7 @@ module.exports = (_ => {
|
||||||
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
||||||
if (!window.BDFDB_Global.downloadModal) {
|
if (!window.BDFDB_Global.downloadModal) {
|
||||||
window.BDFDB_Global.downloadModal = true;
|
window.BDFDB_Global.downloadModal = true;
|
||||||
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${config.info.name} is missing. Please click "Download Now" to install it.`, {
|
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${this.name} is missing. Please click "Download Now" to install it.`, {
|
||||||
confirmText: "Download Now",
|
confirmText: "Download Now",
|
||||||
cancelText: "Cancel",
|
cancelText: "Cancel",
|
||||||
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
||||||
|
@ -43,13 +44,13 @@ module.exports = (_ => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name);
|
if (!window.BDFDB_Global.pluginQueue.includes(this.name)) window.BDFDB_Global.pluginQueue.push(this.name);
|
||||||
}
|
}
|
||||||
start () {this.load();}
|
start () {this.load();}
|
||||||
stop () {}
|
stop () {}
|
||||||
getSettingsPanel () {
|
getSettingsPanel () {
|
||||||
let template = document.createElement("template");
|
let template = document.createElement("template");
|
||||||
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${config.info.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${this.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
||||||
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
||||||
return template.content.firstElementChild;
|
return template.content.firstElementChild;
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,10 +17,11 @@ module.exports = (_ => {
|
||||||
};
|
};
|
||||||
|
|
||||||
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
||||||
getName () {return config.info.name;}
|
constructor (meta) {for (let key in meta) this[key] = meta[key];}
|
||||||
getAuthor () {return config.info.author;}
|
getName () {return this.name;}
|
||||||
getVersion () {return config.info.version;}
|
getAuthor () {return this.author;}
|
||||||
getDescription () {return `The Library Plugin needed for ${config.info.name} is missing. Open the Plugin Settings to download it. \n\n${config.info.description}`;}
|
getVersion () {return this.version;}
|
||||||
|
getDescription () {return `The Library Plugin needed for ${this.name} is missing. Open the Plugin Settings to download it. \n\n${this.description}`;}
|
||||||
|
|
||||||
downloadLibrary () {
|
downloadLibrary () {
|
||||||
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
||||||
|
@ -33,7 +34,7 @@ module.exports = (_ => {
|
||||||
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
||||||
if (!window.BDFDB_Global.downloadModal) {
|
if (!window.BDFDB_Global.downloadModal) {
|
||||||
window.BDFDB_Global.downloadModal = true;
|
window.BDFDB_Global.downloadModal = true;
|
||||||
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${config.info.name} is missing. Please click "Download Now" to install it.`, {
|
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${this.name} is missing. Please click "Download Now" to install it.`, {
|
||||||
confirmText: "Download Now",
|
confirmText: "Download Now",
|
||||||
cancelText: "Cancel",
|
cancelText: "Cancel",
|
||||||
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
||||||
|
@ -43,13 +44,13 @@ module.exports = (_ => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name);
|
if (!window.BDFDB_Global.pluginQueue.includes(this.name)) window.BDFDB_Global.pluginQueue.push(this.name);
|
||||||
}
|
}
|
||||||
start () {this.load();}
|
start () {this.load();}
|
||||||
stop () {}
|
stop () {}
|
||||||
getSettingsPanel () {
|
getSettingsPanel () {
|
||||||
let template = document.createElement("template");
|
let template = document.createElement("template");
|
||||||
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${config.info.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${this.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
||||||
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
||||||
return template.content.firstElementChild;
|
return template.content.firstElementChild;
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,10 +17,11 @@ module.exports = (_ => {
|
||||||
};
|
};
|
||||||
|
|
||||||
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
||||||
getName () {return config.info.name;}
|
constructor (meta) {for (let key in meta) this[key] = meta[key];}
|
||||||
getAuthor () {return config.info.author;}
|
getName () {return this.name;}
|
||||||
getVersion () {return config.info.version;}
|
getAuthor () {return this.author;}
|
||||||
getDescription () {return `The Library Plugin needed for ${config.info.name} is missing. Open the Plugin Settings to download it. \n\n${config.info.description}`;}
|
getVersion () {return this.version;}
|
||||||
|
getDescription () {return `The Library Plugin needed for ${this.name} is missing. Open the Plugin Settings to download it. \n\n${this.description}`;}
|
||||||
|
|
||||||
downloadLibrary () {
|
downloadLibrary () {
|
||||||
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
||||||
|
@ -33,7 +34,7 @@ module.exports = (_ => {
|
||||||
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
||||||
if (!window.BDFDB_Global.downloadModal) {
|
if (!window.BDFDB_Global.downloadModal) {
|
||||||
window.BDFDB_Global.downloadModal = true;
|
window.BDFDB_Global.downloadModal = true;
|
||||||
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${config.info.name} is missing. Please click "Download Now" to install it.`, {
|
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${this.name} is missing. Please click "Download Now" to install it.`, {
|
||||||
confirmText: "Download Now",
|
confirmText: "Download Now",
|
||||||
cancelText: "Cancel",
|
cancelText: "Cancel",
|
||||||
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
||||||
|
@ -43,13 +44,13 @@ module.exports = (_ => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name);
|
if (!window.BDFDB_Global.pluginQueue.includes(this.name)) window.BDFDB_Global.pluginQueue.push(this.name);
|
||||||
}
|
}
|
||||||
start () {this.load();}
|
start () {this.load();}
|
||||||
stop () {}
|
stop () {}
|
||||||
getSettingsPanel () {
|
getSettingsPanel () {
|
||||||
let template = document.createElement("template");
|
let template = document.createElement("template");
|
||||||
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${config.info.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${this.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
||||||
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
||||||
return template.content.firstElementChild;
|
return template.content.firstElementChild;
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,10 +17,11 @@ module.exports = (_ => {
|
||||||
};
|
};
|
||||||
|
|
||||||
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
||||||
getName () {return config.info.name;}
|
constructor (meta) {for (let key in meta) this[key] = meta[key];}
|
||||||
getAuthor () {return config.info.author;}
|
getName () {return this.name;}
|
||||||
getVersion () {return config.info.version;}
|
getAuthor () {return this.author;}
|
||||||
getDescription () {return `The Library Plugin needed for ${config.info.name} is missing. Open the Plugin Settings to download it. \n\n${config.info.description}`;}
|
getVersion () {return this.version;}
|
||||||
|
getDescription () {return `The Library Plugin needed for ${this.name} is missing. Open the Plugin Settings to download it. \n\n${this.description}`;}
|
||||||
|
|
||||||
downloadLibrary () {
|
downloadLibrary () {
|
||||||
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
||||||
|
@ -33,7 +34,7 @@ module.exports = (_ => {
|
||||||
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
||||||
if (!window.BDFDB_Global.downloadModal) {
|
if (!window.BDFDB_Global.downloadModal) {
|
||||||
window.BDFDB_Global.downloadModal = true;
|
window.BDFDB_Global.downloadModal = true;
|
||||||
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${config.info.name} is missing. Please click "Download Now" to install it.`, {
|
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${this.name} is missing. Please click "Download Now" to install it.`, {
|
||||||
confirmText: "Download Now",
|
confirmText: "Download Now",
|
||||||
cancelText: "Cancel",
|
cancelText: "Cancel",
|
||||||
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
||||||
|
@ -43,13 +44,13 @@ module.exports = (_ => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name);
|
if (!window.BDFDB_Global.pluginQueue.includes(this.name)) window.BDFDB_Global.pluginQueue.push(this.name);
|
||||||
}
|
}
|
||||||
start () {this.load();}
|
start () {this.load();}
|
||||||
stop () {}
|
stop () {}
|
||||||
getSettingsPanel () {
|
getSettingsPanel () {
|
||||||
let template = document.createElement("template");
|
let template = document.createElement("template");
|
||||||
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${config.info.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${this.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
||||||
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
||||||
return template.content.firstElementChild;
|
return template.content.firstElementChild;
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,10 +17,11 @@ module.exports = (_ => {
|
||||||
};
|
};
|
||||||
|
|
||||||
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
||||||
getName () {return config.info.name;}
|
constructor (meta) {for (let key in meta) this[key] = meta[key];}
|
||||||
getAuthor () {return config.info.author;}
|
getName () {return this.name;}
|
||||||
getVersion () {return config.info.version;}
|
getAuthor () {return this.author;}
|
||||||
getDescription () {return `The Library Plugin needed for ${config.info.name} is missing. Open the Plugin Settings to download it. \n\n${config.info.description}`;}
|
getVersion () {return this.version;}
|
||||||
|
getDescription () {return `The Library Plugin needed for ${this.name} is missing. Open the Plugin Settings to download it. \n\n${this.description}`;}
|
||||||
|
|
||||||
downloadLibrary () {
|
downloadLibrary () {
|
||||||
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
||||||
|
@ -33,7 +34,7 @@ module.exports = (_ => {
|
||||||
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
||||||
if (!window.BDFDB_Global.downloadModal) {
|
if (!window.BDFDB_Global.downloadModal) {
|
||||||
window.BDFDB_Global.downloadModal = true;
|
window.BDFDB_Global.downloadModal = true;
|
||||||
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${config.info.name} is missing. Please click "Download Now" to install it.`, {
|
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${this.name} is missing. Please click "Download Now" to install it.`, {
|
||||||
confirmText: "Download Now",
|
confirmText: "Download Now",
|
||||||
cancelText: "Cancel",
|
cancelText: "Cancel",
|
||||||
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
||||||
|
@ -43,13 +44,13 @@ module.exports = (_ => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name);
|
if (!window.BDFDB_Global.pluginQueue.includes(this.name)) window.BDFDB_Global.pluginQueue.push(this.name);
|
||||||
}
|
}
|
||||||
start () {this.load();}
|
start () {this.load();}
|
||||||
stop () {}
|
stop () {}
|
||||||
getSettingsPanel () {
|
getSettingsPanel () {
|
||||||
let template = document.createElement("template");
|
let template = document.createElement("template");
|
||||||
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${config.info.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${this.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
||||||
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
||||||
return template.content.firstElementChild;
|
return template.content.firstElementChild;
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,10 +17,11 @@ module.exports = (_ => {
|
||||||
};
|
};
|
||||||
|
|
||||||
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
||||||
getName () {return config.info.name;}
|
constructor (meta) {for (let key in meta) this[key] = meta[key];}
|
||||||
getAuthor () {return config.info.author;}
|
getName () {return this.name;}
|
||||||
getVersion () {return config.info.version;}
|
getAuthor () {return this.author;}
|
||||||
getDescription () {return `The Library Plugin needed for ${config.info.name} is missing. Open the Plugin Settings to download it. \n\n${config.info.description}`;}
|
getVersion () {return this.version;}
|
||||||
|
getDescription () {return `The Library Plugin needed for ${this.name} is missing. Open the Plugin Settings to download it. \n\n${this.description}`;}
|
||||||
|
|
||||||
downloadLibrary () {
|
downloadLibrary () {
|
||||||
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
||||||
|
@ -33,7 +34,7 @@ module.exports = (_ => {
|
||||||
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
||||||
if (!window.BDFDB_Global.downloadModal) {
|
if (!window.BDFDB_Global.downloadModal) {
|
||||||
window.BDFDB_Global.downloadModal = true;
|
window.BDFDB_Global.downloadModal = true;
|
||||||
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${config.info.name} is missing. Please click "Download Now" to install it.`, {
|
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${this.name} is missing. Please click "Download Now" to install it.`, {
|
||||||
confirmText: "Download Now",
|
confirmText: "Download Now",
|
||||||
cancelText: "Cancel",
|
cancelText: "Cancel",
|
||||||
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
||||||
|
@ -43,13 +44,13 @@ module.exports = (_ => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name);
|
if (!window.BDFDB_Global.pluginQueue.includes(this.name)) window.BDFDB_Global.pluginQueue.push(this.name);
|
||||||
}
|
}
|
||||||
start () {this.load();}
|
start () {this.load();}
|
||||||
stop () {}
|
stop () {}
|
||||||
getSettingsPanel () {
|
getSettingsPanel () {
|
||||||
let template = document.createElement("template");
|
let template = document.createElement("template");
|
||||||
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${config.info.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${this.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
||||||
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
||||||
return template.content.firstElementChild;
|
return template.content.firstElementChild;
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,10 +17,11 @@ module.exports = (_ => {
|
||||||
};
|
};
|
||||||
|
|
||||||
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
||||||
getName () {return config.info.name;}
|
constructor (meta) {for (let key in meta) this[key] = meta[key];}
|
||||||
getAuthor () {return config.info.author;}
|
getName () {return this.name;}
|
||||||
getVersion () {return config.info.version;}
|
getAuthor () {return this.author;}
|
||||||
getDescription () {return `The Library Plugin needed for ${config.info.name} is missing. Open the Plugin Settings to download it. \n\n${config.info.description}`;}
|
getVersion () {return this.version;}
|
||||||
|
getDescription () {return `The Library Plugin needed for ${this.name} is missing. Open the Plugin Settings to download it. \n\n${this.description}`;}
|
||||||
|
|
||||||
downloadLibrary () {
|
downloadLibrary () {
|
||||||
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
||||||
|
@ -33,7 +34,7 @@ module.exports = (_ => {
|
||||||
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
||||||
if (!window.BDFDB_Global.downloadModal) {
|
if (!window.BDFDB_Global.downloadModal) {
|
||||||
window.BDFDB_Global.downloadModal = true;
|
window.BDFDB_Global.downloadModal = true;
|
||||||
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${config.info.name} is missing. Please click "Download Now" to install it.`, {
|
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${this.name} is missing. Please click "Download Now" to install it.`, {
|
||||||
confirmText: "Download Now",
|
confirmText: "Download Now",
|
||||||
cancelText: "Cancel",
|
cancelText: "Cancel",
|
||||||
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
||||||
|
@ -43,13 +44,13 @@ module.exports = (_ => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name);
|
if (!window.BDFDB_Global.pluginQueue.includes(this.name)) window.BDFDB_Global.pluginQueue.push(this.name);
|
||||||
}
|
}
|
||||||
start () {this.load();}
|
start () {this.load();}
|
||||||
stop () {}
|
stop () {}
|
||||||
getSettingsPanel () {
|
getSettingsPanel () {
|
||||||
let template = document.createElement("template");
|
let template = document.createElement("template");
|
||||||
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${config.info.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${this.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
||||||
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
||||||
return template.content.firstElementChild;
|
return template.content.firstElementChild;
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,10 +17,11 @@ module.exports = (_ => {
|
||||||
};
|
};
|
||||||
|
|
||||||
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
||||||
getName () {return config.info.name;}
|
constructor (meta) {for (let key in meta) this[key] = meta[key];}
|
||||||
getAuthor () {return config.info.author;}
|
getName () {return this.name;}
|
||||||
getVersion () {return config.info.version;}
|
getAuthor () {return this.author;}
|
||||||
getDescription () {return `The Library Plugin needed for ${config.info.name} is missing. Open the Plugin Settings to download it. \n\n${config.info.description}`;}
|
getVersion () {return this.version;}
|
||||||
|
getDescription () {return `The Library Plugin needed for ${this.name} is missing. Open the Plugin Settings to download it. \n\n${this.description}`;}
|
||||||
|
|
||||||
downloadLibrary () {
|
downloadLibrary () {
|
||||||
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
||||||
|
@ -33,7 +34,7 @@ module.exports = (_ => {
|
||||||
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
||||||
if (!window.BDFDB_Global.downloadModal) {
|
if (!window.BDFDB_Global.downloadModal) {
|
||||||
window.BDFDB_Global.downloadModal = true;
|
window.BDFDB_Global.downloadModal = true;
|
||||||
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${config.info.name} is missing. Please click "Download Now" to install it.`, {
|
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${this.name} is missing. Please click "Download Now" to install it.`, {
|
||||||
confirmText: "Download Now",
|
confirmText: "Download Now",
|
||||||
cancelText: "Cancel",
|
cancelText: "Cancel",
|
||||||
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
||||||
|
@ -43,13 +44,13 @@ module.exports = (_ => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name);
|
if (!window.BDFDB_Global.pluginQueue.includes(this.name)) window.BDFDB_Global.pluginQueue.push(this.name);
|
||||||
}
|
}
|
||||||
start () {this.load();}
|
start () {this.load();}
|
||||||
stop () {}
|
stop () {}
|
||||||
getSettingsPanel () {
|
getSettingsPanel () {
|
||||||
let template = document.createElement("template");
|
let template = document.createElement("template");
|
||||||
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${config.info.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${this.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
||||||
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
||||||
return template.content.firstElementChild;
|
return template.content.firstElementChild;
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,10 +17,11 @@ module.exports = (_ => {
|
||||||
};
|
};
|
||||||
|
|
||||||
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
||||||
getName () {return config.info.name;}
|
constructor (meta) {for (let key in meta) this[key] = meta[key];}
|
||||||
getAuthor () {return config.info.author;}
|
getName () {return this.name;}
|
||||||
getVersion () {return config.info.version;}
|
getAuthor () {return this.author;}
|
||||||
getDescription () {return `The Library Plugin needed for ${config.info.name} is missing. Open the Plugin Settings to download it. \n\n${config.info.description}`;}
|
getVersion () {return this.version;}
|
||||||
|
getDescription () {return `The Library Plugin needed for ${this.name} is missing. Open the Plugin Settings to download it. \n\n${this.description}`;}
|
||||||
|
|
||||||
downloadLibrary () {
|
downloadLibrary () {
|
||||||
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
||||||
|
@ -33,7 +34,7 @@ module.exports = (_ => {
|
||||||
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
||||||
if (!window.BDFDB_Global.downloadModal) {
|
if (!window.BDFDB_Global.downloadModal) {
|
||||||
window.BDFDB_Global.downloadModal = true;
|
window.BDFDB_Global.downloadModal = true;
|
||||||
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${config.info.name} is missing. Please click "Download Now" to install it.`, {
|
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${this.name} is missing. Please click "Download Now" to install it.`, {
|
||||||
confirmText: "Download Now",
|
confirmText: "Download Now",
|
||||||
cancelText: "Cancel",
|
cancelText: "Cancel",
|
||||||
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
||||||
|
@ -43,13 +44,13 @@ module.exports = (_ => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name);
|
if (!window.BDFDB_Global.pluginQueue.includes(this.name)) window.BDFDB_Global.pluginQueue.push(this.name);
|
||||||
}
|
}
|
||||||
start () {this.load();}
|
start () {this.load();}
|
||||||
stop () {}
|
stop () {}
|
||||||
getSettingsPanel () {
|
getSettingsPanel () {
|
||||||
let template = document.createElement("template");
|
let template = document.createElement("template");
|
||||||
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${config.info.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${this.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
||||||
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
||||||
return template.content.firstElementChild;
|
return template.content.firstElementChild;
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,10 +17,11 @@ module.exports = (_ => {
|
||||||
};
|
};
|
||||||
|
|
||||||
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
||||||
getName () {return config.info.name;}
|
constructor (meta) {for (let key in meta) this[key] = meta[key];}
|
||||||
getAuthor () {return config.info.author;}
|
getName () {return this.name;}
|
||||||
getVersion () {return config.info.version;}
|
getAuthor () {return this.author;}
|
||||||
getDescription () {return `The Library Plugin needed for ${config.info.name} is missing. Open the Plugin Settings to download it. \n\n${config.info.description}`;}
|
getVersion () {return this.version;}
|
||||||
|
getDescription () {return `The Library Plugin needed for ${this.name} is missing. Open the Plugin Settings to download it. \n\n${this.description}`;}
|
||||||
|
|
||||||
downloadLibrary () {
|
downloadLibrary () {
|
||||||
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
||||||
|
@ -33,7 +34,7 @@ module.exports = (_ => {
|
||||||
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
||||||
if (!window.BDFDB_Global.downloadModal) {
|
if (!window.BDFDB_Global.downloadModal) {
|
||||||
window.BDFDB_Global.downloadModal = true;
|
window.BDFDB_Global.downloadModal = true;
|
||||||
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${config.info.name} is missing. Please click "Download Now" to install it.`, {
|
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${this.name} is missing. Please click "Download Now" to install it.`, {
|
||||||
confirmText: "Download Now",
|
confirmText: "Download Now",
|
||||||
cancelText: "Cancel",
|
cancelText: "Cancel",
|
||||||
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
||||||
|
@ -43,13 +44,13 @@ module.exports = (_ => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name);
|
if (!window.BDFDB_Global.pluginQueue.includes(this.name)) window.BDFDB_Global.pluginQueue.push(this.name);
|
||||||
}
|
}
|
||||||
start () {this.load();}
|
start () {this.load();}
|
||||||
stop () {}
|
stop () {}
|
||||||
getSettingsPanel () {
|
getSettingsPanel () {
|
||||||
let template = document.createElement("template");
|
let template = document.createElement("template");
|
||||||
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${config.info.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${this.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
||||||
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
||||||
return template.content.firstElementChild;
|
return template.content.firstElementChild;
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,10 +17,11 @@ module.exports = (_ => {
|
||||||
};
|
};
|
||||||
|
|
||||||
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
||||||
getName () {return config.info.name;}
|
constructor (meta) {for (let key in meta) this[key] = meta[key];}
|
||||||
getAuthor () {return config.info.author;}
|
getName () {return this.name;}
|
||||||
getVersion () {return config.info.version;}
|
getAuthor () {return this.author;}
|
||||||
getDescription () {return `The Library Plugin needed for ${config.info.name} is missing. Open the Plugin Settings to download it. \n\n${config.info.description}`;}
|
getVersion () {return this.version;}
|
||||||
|
getDescription () {return `The Library Plugin needed for ${this.name} is missing. Open the Plugin Settings to download it. \n\n${this.description}`;}
|
||||||
|
|
||||||
downloadLibrary () {
|
downloadLibrary () {
|
||||||
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
||||||
|
@ -33,7 +34,7 @@ module.exports = (_ => {
|
||||||
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
||||||
if (!window.BDFDB_Global.downloadModal) {
|
if (!window.BDFDB_Global.downloadModal) {
|
||||||
window.BDFDB_Global.downloadModal = true;
|
window.BDFDB_Global.downloadModal = true;
|
||||||
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${config.info.name} is missing. Please click "Download Now" to install it.`, {
|
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${this.name} is missing. Please click "Download Now" to install it.`, {
|
||||||
confirmText: "Download Now",
|
confirmText: "Download Now",
|
||||||
cancelText: "Cancel",
|
cancelText: "Cancel",
|
||||||
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
||||||
|
@ -43,13 +44,13 @@ module.exports = (_ => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name);
|
if (!window.BDFDB_Global.pluginQueue.includes(this.name)) window.BDFDB_Global.pluginQueue.push(this.name);
|
||||||
}
|
}
|
||||||
start () {this.load();}
|
start () {this.load();}
|
||||||
stop () {}
|
stop () {}
|
||||||
getSettingsPanel () {
|
getSettingsPanel () {
|
||||||
let template = document.createElement("template");
|
let template = document.createElement("template");
|
||||||
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${config.info.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${this.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
||||||
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
||||||
return template.content.firstElementChild;
|
return template.content.firstElementChild;
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,10 +17,11 @@ module.exports = (_ => {
|
||||||
};
|
};
|
||||||
|
|
||||||
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
||||||
getName () {return config.info.name;}
|
constructor (meta) {for (let key in meta) this[key] = meta[key];}
|
||||||
getAuthor () {return config.info.author;}
|
getName () {return this.name;}
|
||||||
getVersion () {return config.info.version;}
|
getAuthor () {return this.author;}
|
||||||
getDescription () {return `The Library Plugin needed for ${config.info.name} is missing. Open the Plugin Settings to download it. \n\n${config.info.description}`;}
|
getVersion () {return this.version;}
|
||||||
|
getDescription () {return `The Library Plugin needed for ${this.name} is missing. Open the Plugin Settings to download it. \n\n${this.description}`;}
|
||||||
|
|
||||||
downloadLibrary () {
|
downloadLibrary () {
|
||||||
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
||||||
|
@ -33,7 +34,7 @@ module.exports = (_ => {
|
||||||
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
||||||
if (!window.BDFDB_Global.downloadModal) {
|
if (!window.BDFDB_Global.downloadModal) {
|
||||||
window.BDFDB_Global.downloadModal = true;
|
window.BDFDB_Global.downloadModal = true;
|
||||||
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${config.info.name} is missing. Please click "Download Now" to install it.`, {
|
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${this.name} is missing. Please click "Download Now" to install it.`, {
|
||||||
confirmText: "Download Now",
|
confirmText: "Download Now",
|
||||||
cancelText: "Cancel",
|
cancelText: "Cancel",
|
||||||
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
||||||
|
@ -43,13 +44,13 @@ module.exports = (_ => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name);
|
if (!window.BDFDB_Global.pluginQueue.includes(this.name)) window.BDFDB_Global.pluginQueue.push(this.name);
|
||||||
}
|
}
|
||||||
start () {this.load();}
|
start () {this.load();}
|
||||||
stop () {}
|
stop () {}
|
||||||
getSettingsPanel () {
|
getSettingsPanel () {
|
||||||
let template = document.createElement("template");
|
let template = document.createElement("template");
|
||||||
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${config.info.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${this.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
||||||
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
||||||
return template.content.firstElementChild;
|
return template.content.firstElementChild;
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,10 +17,11 @@ module.exports = (_ => {
|
||||||
};
|
};
|
||||||
|
|
||||||
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
||||||
getName () {return config.info.name;}
|
constructor (meta) {for (let key in meta) this[key] = meta[key];}
|
||||||
getAuthor () {return config.info.author;}
|
getName () {return this.name;}
|
||||||
getVersion () {return config.info.version;}
|
getAuthor () {return this.author;}
|
||||||
getDescription () {return `The Library Plugin needed for ${config.info.name} is missing. Open the Plugin Settings to download it. \n\n${config.info.description}`;}
|
getVersion () {return this.version;}
|
||||||
|
getDescription () {return `The Library Plugin needed for ${this.name} is missing. Open the Plugin Settings to download it. \n\n${this.description}`;}
|
||||||
|
|
||||||
downloadLibrary () {
|
downloadLibrary () {
|
||||||
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
||||||
|
@ -33,7 +34,7 @@ module.exports = (_ => {
|
||||||
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
||||||
if (!window.BDFDB_Global.downloadModal) {
|
if (!window.BDFDB_Global.downloadModal) {
|
||||||
window.BDFDB_Global.downloadModal = true;
|
window.BDFDB_Global.downloadModal = true;
|
||||||
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${config.info.name} is missing. Please click "Download Now" to install it.`, {
|
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${this.name} is missing. Please click "Download Now" to install it.`, {
|
||||||
confirmText: "Download Now",
|
confirmText: "Download Now",
|
||||||
cancelText: "Cancel",
|
cancelText: "Cancel",
|
||||||
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
||||||
|
@ -43,13 +44,13 @@ module.exports = (_ => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name);
|
if (!window.BDFDB_Global.pluginQueue.includes(this.name)) window.BDFDB_Global.pluginQueue.push(this.name);
|
||||||
}
|
}
|
||||||
start () {this.load();}
|
start () {this.load();}
|
||||||
stop () {}
|
stop () {}
|
||||||
getSettingsPanel () {
|
getSettingsPanel () {
|
||||||
let template = document.createElement("template");
|
let template = document.createElement("template");
|
||||||
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${config.info.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${this.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
||||||
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
||||||
return template.content.firstElementChild;
|
return template.content.firstElementChild;
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,10 +17,11 @@ module.exports = (_ => {
|
||||||
};
|
};
|
||||||
|
|
||||||
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
||||||
getName () {return config.info.name;}
|
constructor (meta) {for (let key in meta) this[key] = meta[key];}
|
||||||
getAuthor () {return config.info.author;}
|
getName () {return this.name;}
|
||||||
getVersion () {return config.info.version;}
|
getAuthor () {return this.author;}
|
||||||
getDescription () {return `The Library Plugin needed for ${config.info.name} is missing. Open the Plugin Settings to download it. \n\n${config.info.description}`;}
|
getVersion () {return this.version;}
|
||||||
|
getDescription () {return `The Library Plugin needed for ${this.name} is missing. Open the Plugin Settings to download it. \n\n${this.description}`;}
|
||||||
|
|
||||||
downloadLibrary () {
|
downloadLibrary () {
|
||||||
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
||||||
|
@ -33,7 +34,7 @@ module.exports = (_ => {
|
||||||
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
||||||
if (!window.BDFDB_Global.downloadModal) {
|
if (!window.BDFDB_Global.downloadModal) {
|
||||||
window.BDFDB_Global.downloadModal = true;
|
window.BDFDB_Global.downloadModal = true;
|
||||||
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${config.info.name} is missing. Please click "Download Now" to install it.`, {
|
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${this.name} is missing. Please click "Download Now" to install it.`, {
|
||||||
confirmText: "Download Now",
|
confirmText: "Download Now",
|
||||||
cancelText: "Cancel",
|
cancelText: "Cancel",
|
||||||
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
||||||
|
@ -43,13 +44,13 @@ module.exports = (_ => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name);
|
if (!window.BDFDB_Global.pluginQueue.includes(this.name)) window.BDFDB_Global.pluginQueue.push(this.name);
|
||||||
}
|
}
|
||||||
start () {this.load();}
|
start () {this.load();}
|
||||||
stop () {}
|
stop () {}
|
||||||
getSettingsPanel () {
|
getSettingsPanel () {
|
||||||
let template = document.createElement("template");
|
let template = document.createElement("template");
|
||||||
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${config.info.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${this.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
||||||
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
||||||
return template.content.firstElementChild;
|
return template.content.firstElementChild;
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,10 +17,11 @@ module.exports = (_ => {
|
||||||
};
|
};
|
||||||
|
|
||||||
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
||||||
getName () {return config.info.name;}
|
constructor (meta) {for (let key in meta) this[key] = meta[key];}
|
||||||
getAuthor () {return config.info.author;}
|
getName () {return this.name;}
|
||||||
getVersion () {return config.info.version;}
|
getAuthor () {return this.author;}
|
||||||
getDescription () {return `The Library Plugin needed for ${config.info.name} is missing. Open the Plugin Settings to download it. \n\n${config.info.description}`;}
|
getVersion () {return this.version;}
|
||||||
|
getDescription () {return `The Library Plugin needed for ${this.name} is missing. Open the Plugin Settings to download it. \n\n${this.description}`;}
|
||||||
|
|
||||||
downloadLibrary () {
|
downloadLibrary () {
|
||||||
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
||||||
|
@ -33,7 +34,7 @@ module.exports = (_ => {
|
||||||
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
||||||
if (!window.BDFDB_Global.downloadModal) {
|
if (!window.BDFDB_Global.downloadModal) {
|
||||||
window.BDFDB_Global.downloadModal = true;
|
window.BDFDB_Global.downloadModal = true;
|
||||||
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${config.info.name} is missing. Please click "Download Now" to install it.`, {
|
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${this.name} is missing. Please click "Download Now" to install it.`, {
|
||||||
confirmText: "Download Now",
|
confirmText: "Download Now",
|
||||||
cancelText: "Cancel",
|
cancelText: "Cancel",
|
||||||
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
||||||
|
@ -43,13 +44,13 @@ module.exports = (_ => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name);
|
if (!window.BDFDB_Global.pluginQueue.includes(this.name)) window.BDFDB_Global.pluginQueue.push(this.name);
|
||||||
}
|
}
|
||||||
start () {this.load();}
|
start () {this.load();}
|
||||||
stop () {}
|
stop () {}
|
||||||
getSettingsPanel () {
|
getSettingsPanel () {
|
||||||
let template = document.createElement("template");
|
let template = document.createElement("template");
|
||||||
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${config.info.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${this.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
||||||
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
||||||
return template.content.firstElementChild;
|
return template.content.firstElementChild;
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,10 +17,11 @@ module.exports = (_ => {
|
||||||
};
|
};
|
||||||
|
|
||||||
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
||||||
getName () {return config.info.name;}
|
constructor (meta) {for (let key in meta) this[key] = meta[key];}
|
||||||
getAuthor () {return config.info.author;}
|
getName () {return this.name;}
|
||||||
getVersion () {return config.info.version;}
|
getAuthor () {return this.author;}
|
||||||
getDescription () {return `The Library Plugin needed for ${config.info.name} is missing. Open the Plugin Settings to download it. \n\n${config.info.description}`;}
|
getVersion () {return this.version;}
|
||||||
|
getDescription () {return `The Library Plugin needed for ${this.name} is missing. Open the Plugin Settings to download it. \n\n${this.description}`;}
|
||||||
|
|
||||||
downloadLibrary () {
|
downloadLibrary () {
|
||||||
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
||||||
|
@ -33,7 +34,7 @@ module.exports = (_ => {
|
||||||
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
||||||
if (!window.BDFDB_Global.downloadModal) {
|
if (!window.BDFDB_Global.downloadModal) {
|
||||||
window.BDFDB_Global.downloadModal = true;
|
window.BDFDB_Global.downloadModal = true;
|
||||||
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${config.info.name} is missing. Please click "Download Now" to install it.`, {
|
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${this.name} is missing. Please click "Download Now" to install it.`, {
|
||||||
confirmText: "Download Now",
|
confirmText: "Download Now",
|
||||||
cancelText: "Cancel",
|
cancelText: "Cancel",
|
||||||
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
||||||
|
@ -43,13 +44,13 @@ module.exports = (_ => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name);
|
if (!window.BDFDB_Global.pluginQueue.includes(this.name)) window.BDFDB_Global.pluginQueue.push(this.name);
|
||||||
}
|
}
|
||||||
start () {this.load();}
|
start () {this.load();}
|
||||||
stop () {}
|
stop () {}
|
||||||
getSettingsPanel () {
|
getSettingsPanel () {
|
||||||
let template = document.createElement("template");
|
let template = document.createElement("template");
|
||||||
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${config.info.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${this.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
||||||
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
||||||
return template.content.firstElementChild;
|
return template.content.firstElementChild;
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,10 +17,11 @@ module.exports = (_ => {
|
||||||
};
|
};
|
||||||
|
|
||||||
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
||||||
getName () {return config.info.name;}
|
constructor (meta) {for (let key in meta) this[key] = meta[key];}
|
||||||
getAuthor () {return config.info.author;}
|
getName () {return this.name;}
|
||||||
getVersion () {return config.info.version;}
|
getAuthor () {return this.author;}
|
||||||
getDescription () {return `The Library Plugin needed for ${config.info.name} is missing. Open the Plugin Settings to download it. \n\n${config.info.description}`;}
|
getVersion () {return this.version;}
|
||||||
|
getDescription () {return `The Library Plugin needed for ${this.name} is missing. Open the Plugin Settings to download it. \n\n${this.description}`;}
|
||||||
|
|
||||||
downloadLibrary () {
|
downloadLibrary () {
|
||||||
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
||||||
|
@ -33,7 +34,7 @@ module.exports = (_ => {
|
||||||
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
||||||
if (!window.BDFDB_Global.downloadModal) {
|
if (!window.BDFDB_Global.downloadModal) {
|
||||||
window.BDFDB_Global.downloadModal = true;
|
window.BDFDB_Global.downloadModal = true;
|
||||||
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${config.info.name} is missing. Please click "Download Now" to install it.`, {
|
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${this.name} is missing. Please click "Download Now" to install it.`, {
|
||||||
confirmText: "Download Now",
|
confirmText: "Download Now",
|
||||||
cancelText: "Cancel",
|
cancelText: "Cancel",
|
||||||
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
||||||
|
@ -43,13 +44,13 @@ module.exports = (_ => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name);
|
if (!window.BDFDB_Global.pluginQueue.includes(this.name)) window.BDFDB_Global.pluginQueue.push(this.name);
|
||||||
}
|
}
|
||||||
start () {this.load();}
|
start () {this.load();}
|
||||||
stop () {}
|
stop () {}
|
||||||
getSettingsPanel () {
|
getSettingsPanel () {
|
||||||
let template = document.createElement("template");
|
let template = document.createElement("template");
|
||||||
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${config.info.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${this.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
||||||
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
||||||
return template.content.firstElementChild;
|
return template.content.firstElementChild;
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,10 +17,11 @@ module.exports = (_ => {
|
||||||
};
|
};
|
||||||
|
|
||||||
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
||||||
getName () {return config.info.name;}
|
constructor (meta) {for (let key in meta) this[key] = meta[key];}
|
||||||
getAuthor () {return config.info.author;}
|
getName () {return this.name;}
|
||||||
getVersion () {return config.info.version;}
|
getAuthor () {return this.author;}
|
||||||
getDescription () {return `The Library Plugin needed for ${config.info.name} is missing. Open the Plugin Settings to download it. \n\n${config.info.description}`;}
|
getVersion () {return this.version;}
|
||||||
|
getDescription () {return `The Library Plugin needed for ${this.name} is missing. Open the Plugin Settings to download it. \n\n${this.description}`;}
|
||||||
|
|
||||||
downloadLibrary () {
|
downloadLibrary () {
|
||||||
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
||||||
|
@ -33,7 +34,7 @@ module.exports = (_ => {
|
||||||
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
||||||
if (!window.BDFDB_Global.downloadModal) {
|
if (!window.BDFDB_Global.downloadModal) {
|
||||||
window.BDFDB_Global.downloadModal = true;
|
window.BDFDB_Global.downloadModal = true;
|
||||||
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${config.info.name} is missing. Please click "Download Now" to install it.`, {
|
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${this.name} is missing. Please click "Download Now" to install it.`, {
|
||||||
confirmText: "Download Now",
|
confirmText: "Download Now",
|
||||||
cancelText: "Cancel",
|
cancelText: "Cancel",
|
||||||
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
||||||
|
@ -43,13 +44,13 @@ module.exports = (_ => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name);
|
if (!window.BDFDB_Global.pluginQueue.includes(this.name)) window.BDFDB_Global.pluginQueue.push(this.name);
|
||||||
}
|
}
|
||||||
start () {this.load();}
|
start () {this.load();}
|
||||||
stop () {}
|
stop () {}
|
||||||
getSettingsPanel () {
|
getSettingsPanel () {
|
||||||
let template = document.createElement("template");
|
let template = document.createElement("template");
|
||||||
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${config.info.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${this.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
||||||
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
||||||
return template.content.firstElementChild;
|
return template.content.firstElementChild;
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,10 +17,11 @@ module.exports = (_ => {
|
||||||
};
|
};
|
||||||
|
|
||||||
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
||||||
getName () {return config.info.name;}
|
constructor (meta) {for (let key in meta) this[key] = meta[key];}
|
||||||
getAuthor () {return config.info.author;}
|
getName () {return this.name;}
|
||||||
getVersion () {return config.info.version;}
|
getAuthor () {return this.author;}
|
||||||
getDescription () {return `The Library Plugin needed for ${config.info.name} is missing. Open the Plugin Settings to download it. \n\n${config.info.description}`;}
|
getVersion () {return this.version;}
|
||||||
|
getDescription () {return `The Library Plugin needed for ${this.name} is missing. Open the Plugin Settings to download it. \n\n${this.description}`;}
|
||||||
|
|
||||||
downloadLibrary () {
|
downloadLibrary () {
|
||||||
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
||||||
|
@ -33,7 +34,7 @@ module.exports = (_ => {
|
||||||
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
||||||
if (!window.BDFDB_Global.downloadModal) {
|
if (!window.BDFDB_Global.downloadModal) {
|
||||||
window.BDFDB_Global.downloadModal = true;
|
window.BDFDB_Global.downloadModal = true;
|
||||||
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${config.info.name} is missing. Please click "Download Now" to install it.`, {
|
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${this.name} is missing. Please click "Download Now" to install it.`, {
|
||||||
confirmText: "Download Now",
|
confirmText: "Download Now",
|
||||||
cancelText: "Cancel",
|
cancelText: "Cancel",
|
||||||
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
||||||
|
@ -43,13 +44,13 @@ module.exports = (_ => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name);
|
if (!window.BDFDB_Global.pluginQueue.includes(this.name)) window.BDFDB_Global.pluginQueue.push(this.name);
|
||||||
}
|
}
|
||||||
start () {this.load();}
|
start () {this.load();}
|
||||||
stop () {}
|
stop () {}
|
||||||
getSettingsPanel () {
|
getSettingsPanel () {
|
||||||
let template = document.createElement("template");
|
let template = document.createElement("template");
|
||||||
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${config.info.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${this.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
||||||
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
||||||
return template.content.firstElementChild;
|
return template.content.firstElementChild;
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,10 +17,11 @@ module.exports = (_ => {
|
||||||
};
|
};
|
||||||
|
|
||||||
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
||||||
getName () {return config.info.name;}
|
constructor (meta) {for (let key in meta) this[key] = meta[key];}
|
||||||
getAuthor () {return config.info.author;}
|
getName () {return this.name;}
|
||||||
getVersion () {return config.info.version;}
|
getAuthor () {return this.author;}
|
||||||
getDescription () {return `The Library Plugin needed for ${config.info.name} is missing. Open the Plugin Settings to download it. \n\n${config.info.description}`;}
|
getVersion () {return this.version;}
|
||||||
|
getDescription () {return `The Library Plugin needed for ${this.name} is missing. Open the Plugin Settings to download it. \n\n${this.description}`;}
|
||||||
|
|
||||||
downloadLibrary () {
|
downloadLibrary () {
|
||||||
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
||||||
|
@ -33,7 +34,7 @@ module.exports = (_ => {
|
||||||
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
||||||
if (!window.BDFDB_Global.downloadModal) {
|
if (!window.BDFDB_Global.downloadModal) {
|
||||||
window.BDFDB_Global.downloadModal = true;
|
window.BDFDB_Global.downloadModal = true;
|
||||||
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${config.info.name} is missing. Please click "Download Now" to install it.`, {
|
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${this.name} is missing. Please click "Download Now" to install it.`, {
|
||||||
confirmText: "Download Now",
|
confirmText: "Download Now",
|
||||||
cancelText: "Cancel",
|
cancelText: "Cancel",
|
||||||
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
||||||
|
@ -43,13 +44,13 @@ module.exports = (_ => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name);
|
if (!window.BDFDB_Global.pluginQueue.includes(this.name)) window.BDFDB_Global.pluginQueue.push(this.name);
|
||||||
}
|
}
|
||||||
start () {this.load();}
|
start () {this.load();}
|
||||||
stop () {}
|
stop () {}
|
||||||
getSettingsPanel () {
|
getSettingsPanel () {
|
||||||
let template = document.createElement("template");
|
let template = document.createElement("template");
|
||||||
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${config.info.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${this.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
||||||
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
||||||
return template.content.firstElementChild;
|
return template.content.firstElementChild;
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,10 +17,11 @@ module.exports = (_ => {
|
||||||
};
|
};
|
||||||
|
|
||||||
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
||||||
getName () {return config.info.name;}
|
constructor (meta) {for (let key in meta) this[key] = meta[key];}
|
||||||
getAuthor () {return config.info.author;}
|
getName () {return this.name;}
|
||||||
getVersion () {return config.info.version;}
|
getAuthor () {return this.author;}
|
||||||
getDescription () {return `The Library Plugin needed for ${config.info.name} is missing. Open the Plugin Settings to download it. \n\n${config.info.description}`;}
|
getVersion () {return this.version;}
|
||||||
|
getDescription () {return `The Library Plugin needed for ${this.name} is missing. Open the Plugin Settings to download it. \n\n${this.description}`;}
|
||||||
|
|
||||||
downloadLibrary () {
|
downloadLibrary () {
|
||||||
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
||||||
|
@ -33,7 +34,7 @@ module.exports = (_ => {
|
||||||
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
||||||
if (!window.BDFDB_Global.downloadModal) {
|
if (!window.BDFDB_Global.downloadModal) {
|
||||||
window.BDFDB_Global.downloadModal = true;
|
window.BDFDB_Global.downloadModal = true;
|
||||||
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${config.info.name} is missing. Please click "Download Now" to install it.`, {
|
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${this.name} is missing. Please click "Download Now" to install it.`, {
|
||||||
confirmText: "Download Now",
|
confirmText: "Download Now",
|
||||||
cancelText: "Cancel",
|
cancelText: "Cancel",
|
||||||
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
||||||
|
@ -43,13 +44,13 @@ module.exports = (_ => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name);
|
if (!window.BDFDB_Global.pluginQueue.includes(this.name)) window.BDFDB_Global.pluginQueue.push(this.name);
|
||||||
}
|
}
|
||||||
start () {this.load();}
|
start () {this.load();}
|
||||||
stop () {}
|
stop () {}
|
||||||
getSettingsPanel () {
|
getSettingsPanel () {
|
||||||
let template = document.createElement("template");
|
let template = document.createElement("template");
|
||||||
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${config.info.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${this.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
||||||
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
||||||
return template.content.firstElementChild;
|
return template.content.firstElementChild;
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,10 +17,11 @@ module.exports = (_ => {
|
||||||
};
|
};
|
||||||
|
|
||||||
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
||||||
getName () {return config.info.name;}
|
constructor (meta) {for (let key in meta) this[key] = meta[key];}
|
||||||
getAuthor () {return config.info.author;}
|
getName () {return this.name;}
|
||||||
getVersion () {return config.info.version;}
|
getAuthor () {return this.author;}
|
||||||
getDescription () {return `The Library Plugin needed for ${config.info.name} is missing. Open the Plugin Settings to download it. \n\n${config.info.description}`;}
|
getVersion () {return this.version;}
|
||||||
|
getDescription () {return `The Library Plugin needed for ${this.name} is missing. Open the Plugin Settings to download it. \n\n${this.description}`;}
|
||||||
|
|
||||||
downloadLibrary () {
|
downloadLibrary () {
|
||||||
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
|
||||||
|
@ -33,7 +34,7 @@ module.exports = (_ => {
|
||||||
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
|
||||||
if (!window.BDFDB_Global.downloadModal) {
|
if (!window.BDFDB_Global.downloadModal) {
|
||||||
window.BDFDB_Global.downloadModal = true;
|
window.BDFDB_Global.downloadModal = true;
|
||||||
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${config.info.name} is missing. Please click "Download Now" to install it.`, {
|
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${this.name} is missing. Please click "Download Now" to install it.`, {
|
||||||
confirmText: "Download Now",
|
confirmText: "Download Now",
|
||||||
cancelText: "Cancel",
|
cancelText: "Cancel",
|
||||||
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
|
||||||
|
@ -43,13 +44,13 @@ module.exports = (_ => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name);
|
if (!window.BDFDB_Global.pluginQueue.includes(this.name)) window.BDFDB_Global.pluginQueue.push(this.name);
|
||||||
}
|
}
|
||||||
start () {this.load();}
|
start () {this.load();}
|
||||||
stop () {}
|
stop () {}
|
||||||
getSettingsPanel () {
|
getSettingsPanel () {
|
||||||
let template = document.createElement("template");
|
let template = document.createElement("template");
|
||||||
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${config.info.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${this.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
|
||||||
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
|
||||||
return template.content.firstElementChild;
|
return template.content.firstElementChild;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue