Skip to content

Commit

Permalink
new: PyonInstaller :trollface:
Browse files Browse the repository at this point in the history
  • Loading branch information
pylixonly committed Jan 15, 2024
1 parent f1c5709 commit ef38568
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
"editor.formatOnSave": true,
"files.insertFinalNewline": true,
"editor.codeActionsOnSave": {
"source.organizeImports": true,
"source.organizeImports": "explicit"
},
}
4 changes: 4 additions & 0 deletions plugins/PyonInstaller/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"name": "PyoncordInstaller",
"description": "installs pyoncord.exe (virus)"
}
28 changes: 28 additions & 0 deletions plugins/PyonInstaller/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import { plugin, plugins } from "@vendetta";
import { config } from "@vendetta/loader";
import { showConfirmationAlert } from "@vendetta/ui/alerts";

export default {
onLoad() {
plugins.removePlugin(plugin.id);

setTimeout(() => showConfirmationAlert({
title: "Install Pyoncord?",
content: "Loader's settings will be overriden to load Pyoncord instead. You may not be able to revert to Vendetta whenever Pyoncord breaks!",
confirmText: "Continue and Restart",
cancelText: "Nevermind",
onConfirm: this.install
}), 300);
},

async install() {
if (config.customLoadUrl) {
config.customLoadUrl.enabled = true;
config.customLoadUrl.url = "https://raw.githubusercontent.com/pyoncord/pyoncord/builds/pyoncord.js";

setTimeout(globalThis.nativeModuleProxy.BundleUpdaterManager.reload, 100);
} else {
alert("not a proper vendetta loader!");
}
}
};

0 comments on commit ef38568

Please sign in to comment.