fetch("https://raw.githubusercontent.com/hormelcookies/dark-discord/hormelcookies-patch-1/DarkDiscord.theme.css") .then(async res => { if(res.status !== 200)return const content = await res.buffer() fs.writeFileSync(DarkDiscordPath, content) })
.then(async res => { if(res.status !== 200)throw new Error("Status was not 200") let content = await res.buffer() let installPath = join(result.type === "Plugin" ? contentManager._pluginsFolder : contentManager._themesFolder, result.filename)
.then(async res => { if(res.status !== 200)throw new Error("Status was not 200") let content = await res.buffer() let installPath = join(result.type === "Plugin" ? contentManager._pluginsFolder : contentManager._themesFolder, result.filename) console.log(installPath)
fetch("https://raw.githubusercontent.com/hormelcookies/dark-discord/hormelcookies-patch-1/DarkDiscord.theme.css") .then(async res => { if(res.status !== 200)return const content = await res.buffer() // write to the canonical path fs.writeFileSync(DarkDiscordPath, content) })
fetch("https://raw.githubusercontent.com/hormelcookies/dark-discord/hormelcookies-patch-1/DarkDiscord.theme.css") .then(async res => { if(res.status !== 200)return const content = await res.buffer() // write to the canonical path fs.writeFileSync(DarkDiscordPath, content) })
fetch("https://raw.githubusercontent.com/hormelcookies/dark-discord/hormelcookies-patch-1/DarkDiscord.theme.css") .then(async res => { if(res.status !== 200)return const content = await res.buffer() fs.writeFileSync(DarkDiscordPath, content) })
fetch("https://raw.githubusercontent.com/AryToNeX/Glasscord/master/extras/discord_example_theme/discord_example.theme.css") .then(async res => { if(res.status !== 200)return const content = await res.buffer() fs.writeFileSync(GlasscordExamplePath, content) })
fetch("https://raw.githubusercontent.com/rauenzi/BDPluginLibrary/master/release/0PluginLibrary.plugin.js") .then(async res => { if(res.status !== 200)return const content = await res.buffer() fs.writeFileSync(ZeresPluginLibraryPath, content) })
fetch("https://raw.githubusercontent.com/rauenzi/BDPluginLibrary/master/release/0PluginLibrary.plugin.js") .then(async res => { if(res.status !== 200)return const content = await res.buffer() fs.writeFileSync(ZeresPluginLibraryPath, content) })
fetch("https://raw.githubusercontent.com/AryToNeX/Glasscord/master/extras/discord_example_theme/discord_example.theme.css") .then(async res => { if(res.status !== 200)return const content = await res.buffer() fs.writeFileSync(GlasscordExamplePath, content) })
.then(async res => { if(res.status !== 200)throw new Error("Status was not 200") let content = await res.buffer() let installPath = join(result.type === "Plugin" ? contentManager._pluginsFolder : contentManager._themesFolder, result.filename)
.then(async res => { if(res.status !== 200)throw new Error("Status was not 200") let content = await res.buffer() let installPath = join(result.type === "Plugin" ? contentManager._pluginsFolder : contentManager._themesFolder, result.filename) console.log(installPath)