-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2f67a93
commit 7e65136
Showing
19 changed files
with
56 additions
and
877 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Zip and Publish | ||
on: [workflow_dispatch] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Create Zip File | ||
uses: vimtor/action-zip@v1 | ||
with: | ||
files: ./patches | ||
dest: patches.zip | ||
|
||
- name: Upload Zip | ||
uses: svenstaro/upload-release-action@2.7.0 | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
file: ${{ github.workspace }}/patches.zip | ||
asset_name: patches.zip | ||
tag: "Build" | ||
overwrite: true |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,2 @@ | ||
# GoofMod | ||
A helper mod for GoofCord. | ||
|
||
Based on https://github.com/ArmCord/Mod and https://github.com/Vendicated/Vencord | ||
# GoofCord Scripts | ||
A collection of default GoofCord helper scripts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,9 @@ | ||
@echo off | ||
|
||
:: Windows script to copy built goofmod into the scripts folder | ||
:: Also, copy all files from the "./patches" folder to the destination | ||
:: Windows script to copy patches into the scripts folder | ||
|
||
set "source_goofmod=.\dist\0_goofmod.js" | ||
set "source_patches=.\patches" | ||
set "destination_goofmod=C:\Users\Administrator\AppData\Roaming\GoofCord\scripts" | ||
|
||
|
||
:: Copy goofmod.js | ||
copy "%source_goofmod%" "%destination_goofmod%" | ||
|
||
:: Copy all files from the "patches" folder | ||
xcopy "%source_patches%" "%destination_goofmod%" /E /Y |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
/** | ||
* @name MessageEncryption | ||
* @description Encrypts messages | ||
* @version 1.0.0 | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,18 @@ | ||
/** | ||
* @name ConsoleSupressor | ||
* @description Suppresses messages in the console that are not necessary | ||
* @version 1.0.0 | ||
* @description Suppresses Discord logger | ||
* @version 2.0.0 | ||
*/ | ||
|
||
// All the messages here are useless and just spam the console | ||
// Some filters are not included to keep the list small | ||
const messagesToFilter = [ | ||
"[Gate", // [GatewaySocket] | ||
"[RTC", // [RTCConnection] | ||
"[Anal", // [Analytics] | ||
"[Unif", // [UnifiedConnection] | ||
"[Str" // [StreamTile] | ||
]; | ||
|
||
function filterConsoleMessages() { | ||
const originalConsoleMethods = {}; | ||
|
||
// Iterate through all console methods and filter messages | ||
Object.keys(console).forEach(method => { | ||
originalConsoleMethods[method] = console[method]; | ||
|
||
console[method] = function () { | ||
const message = arguments[0]; | ||
if (message && messagesToFilter.some(msg => message.includes(msg))) { | ||
return; | ||
const patches = [ | ||
{ | ||
find: "=console)[", | ||
replacement: [ | ||
{ | ||
match: /\(.=console.{53}/, | ||
replace: "" | ||
} | ||
originalConsoleMethods[method].apply(console, arguments); | ||
}; | ||
}); | ||
} | ||
|
||
filterConsoleMessages(); | ||
], | ||
plugin: 'ConsoleSupressor' | ||
} | ||
]; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.