Closed CS1o closed 9 months ago
Thankss!!!
Works 👍 thank you
Truly a savior. Thanks a lot
I had this problem; I tried adding your code to the plugin script, but the plugin still throws an error:
TypeError: Cannot read properties of undefined (reading 'exports') at AnimatedStatus.load (betterdiscord://plugins/Animated_Status.plugin.js:42:85) at A.initializeAddon (betterdiscord/renderer.js:5:34026) at A.loadAddon (betterdiscord/renderer.js:5:7528) at A.loadAddon (betterdiscord/renderer.js:5:32573) at A.loadAllAddons (betterdiscord/renderer.js:5:9835) at A.initialize (betterdiscord/renderer.js:5:4215) at A.initialize (betterdiscord/renderer.js:5:31772) at Object.startup (betterdiscord/renderer.js:5:364062)
Thank you so much sir
thank you
Big thanks!!
actual life saver, tysm!!
Thanks for the fix!
Thanks, it fixes the load() error but it has whipped/does not show old entries/status's. Anyone know a way to get them back/show them (I have a copy of the old master folder if anyone would know where the status's are stored thx)
Thanks, it fixes the load() error but it has whipped/does not show old entries/status's. Anyone know a way to get them back/show them (I have a copy of the old master folder if anyone would know where the status's are stored thx)
Hey, this issue didnt happened for me or the others. As changing just the plugin code shouldn't delete the Status. All the Status Entries are located in: "C:\Users\YourUserName\AppData\Roaming\BetterDiscord\plugins\AnimatedStatus.config.json" Hope that helps.
@MrSenet I would advise to Install BetterDiscord again. Even if its the same Version, just overwrite. Then redownload the script and change the code. That should work.
@CS1o This is essentially the first thing I did. But I tried again, it didn't help me.
Thanks, it fixes the load() error but it has whipped/does not show old entries/status's. Anyone know a way to get them back/show them (I have a copy of the old master folder if anyone would know where the status's are stored thx)
Hey, this issue didnt happened for me or the others. As changing just the plugin code shouldn't delete the Status. All the Status Entries are located in: "C:\Users\YourUserName\AppData\Roaming\BetterDiscord\plugins\AnimatedStatus.config.json" Hope that helps.
Where in the file are they? And how do I open it?, I've been opening it with Notepad++ but found no status's. Do I need to open it with some javascript editor?
thx
Thanks, it fixes the load() error but it has whipped/does not show old entries/status's. Anyone know a way to get them back/show them (I have a copy of the old master folder if anyone would know where the status's are stored thx)
Hey, this issue didnt happened for me or the others. As changing just the plugin code shouldn't delete the Status. All the Status Entries are located in: "C:\Users\YourUserName\AppData\Roaming\BetterDiscord\plugins\AnimatedStatus.config.json" Hope that helps.
Where in the file are they? And how do I open it?, I've been opening it with Notepad++ but found no status's. Do I need to open it with some javascript editor?
thx
wait crap no nevermind found it
THANK YOU!!!!!!!!!!!!!!
I had/have 100+ entrys that I really didn't want to have to type out again thank you!
you're a legend man
Maybe someone should create PR with this fix
Notice taken
Discord Version
250759
Discord Release Channel
stable
BetterDiscord Version
1.9.6
Plugin Version
v0.13.2
The Plugin doesn't load anymore. So here is the Fix:
You need to got into the Discord Plugins section and at the Plugin click on the Edit Pencil. Or you can open the Plugin Folder and edit the Script with Notepad++.
in the Script at line 28 it looks like this:
Change it to:
After that click the save icon in discord or in Notepad++. Then restart Discord. If the error appears again after clicking save, just click it again and restart Discord again. Important: You have to enable the Plugin in Discord after the Changes!
What was the Solution?
I asked ChapGPT-3.5 the following: "I have an error in a discord plugin thats used to switch the discord status message in realtime. The plugin is written in JavaScript. Its called Animated_Status.plugin.js. Its code is the following:"
"Here i pasted the complete script"
"this is the error code when launching discord with that plugin:"
"What do i need to change in the code to make it work again?"
This was the answer:
"It looks like the issue is with the way the plugin is trying to access the values of the webpackChunkdiscord_app variable. The error is occurring at line 32 in the load method. The code attempts to concatenate the values of e.c (which is expected to be an object with modules) into the m array.
The error suggests that e.c is undefined or null, and trying to convert it to an object results in the TypeError.
To fix this issue, you can add some defensive checks to ensure that e.c is not undefined or null before attempting to access its values. Here's an updated version of the relevant code:"
javascript
"This modification adds || {} after e.c to provide an empty object as a fallback if e.c is undefined or null. This should prevent the TypeError and allow the plugin to load without errors.
After making this change, try reloading the plugin and see if the issue persists. If you encounter any other issues or have further questions, feel free to ask!"