Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Angelix1 authored Feb 10, 2024
1 parent f127cdb commit 87cbf02
Show file tree
Hide file tree
Showing 4 changed files with 87 additions and 0 deletions.
36 changes: 36 additions & 0 deletions plugins/chawario/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
/* When coding this i got brain damage */

import { makeDefaults } from "../../lib/utility";
// import settingPage from "./setting";

import chatThing from "./patch/chat";

import { storage } from "@vendetta/plugin";

/*
makeDefaults(storage, {
colors: {
hex: "#DAFAF0",
},
switches: {
enableUsername: true,
enableReply: false,
enableType: false,
enableToMyself: false,
},
})
*/

const patches = [];

export default {
onLoad: () => {
patches.push(
chatThing()
)
},
onUnload: () => {
patches.forEach(un => un());
},
// settings: settingPage
}
14 changes: 14 additions & 0 deletions plugins/chawario/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"name": "ChaWario",
"description": "VISIBLE ONLY TO YOU. WARIOOOOOOOOOOOOOOOO.",
"authors": [
{
"name": "Angelica",
"id": "692632336961110087"
}
],
"main": "index.js",
"vendetta": {
"icon": "ic_legacy_username"
}
}
37 changes: 37 additions & 0 deletions plugins/chawario/patch/chat.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
/* Severe barin damage */
/* Only gawd know what the fucj therse kode does */

import { before, after } from "@vendetta/patcher";
import { ReactNative } from "@vendetta/metro/common"
import { find, findByProps, findByStoreName, findByName } from "@vendetta/metro";

const { DCDChatManager } = ReactNative.NativeModules;

const WARIO = "https://cdn.discordapp.com/attachments/919655852724604978/1197224092554772622/9k.png";

export default () => before("updateRows", DCDChatManager, (args) => {
let rows = JSON.parse(args[1]);

for (const row of rows) {
const { message } = row
if(!message) continue;

const WARIO_2_0 = "WARIO";
const IDFK_Dischord_sheit = "?ex=65ba7cd3&is=65a807d3&hm=802329bcd8341bb5e83c054cc7c42d9381f071d4f481fe666284dcdff01a0f2e&";

message.avatarURL = WARIO; // + IDFK_Dischord_sheit
message.tagText = WARIO_2_0;
message.opTagText = WARIO_2_0;
message.username = WARIO_2_0;

if(message?.referencedMessage?.message) {

message.referencedMessage.message.avatarURL = WARIO; // + IDFK_Dischord_sheit
message.referencedMessage.message.tagText = WARIO_2_0;
message.referencedMessage.message.opTagText = WARIO_2_0;
message.referencedMessage.message.username = WARIO_2_0;
}
}

args[1] = JSON.stringify(rows);
})
Empty file added plugins/chawario/setting.jsx
Empty file.

0 comments on commit 87cbf02

Please sign in to comment.