68f73ebd3c | ||
---|---|---|
.github/ISSUE_TEMPLATE | ||
assets | ||
dist | ||
src | ||
tests | ||
.babelrc | ||
.eslintrc | ||
.gitignore | ||
.stylelintrc | ||
.travis.yml | ||
CONTRIBUTING.md | ||
LICENSE | ||
README.md | ||
TODO.md | ||
gulpfile.js | ||
jsconfig.json | ||
lgtm.yml | ||
package-lock.json | ||
package.json | ||
webpack.config.js |
README.md
BandagedBD
This branch is for the ongoing rewrite of BandagedBD. You can view what I believe to be left in the TODO.md file.
Testing
The following steps tell you how you can currently test the state of the rewrite as of April 23rd 2020.
- locate your BD installation. For Windows it is usually in
%localappdata%\Discord\app-0.0.306\resources\app\betterdiscord
. - Open config.json in a text editor (n++, notepad, etc).
- Change the line
"branch": "master",
to"branch": "development",
. - (optional) Change
"minified": true,
to"minified": false,
to stay on the bleeding edge (sometimes I forget to update the minified version). - Fully restart your Discord client.
- You can verify it worked by seeing the revamped plugins and themes pages as well as custom css. You can also see if the version in settings is 1.0.0+
Script Version
The above can be automatically done in script form.
((branch = "development", minified = false) => {
try {
const fs = require("fs");
const path = require("path");
const configPath = path.join(DataStore.injectionPath, "betterdiscord", "config.json");
const config = require(configPath);
config.branch = branch;
config.minified = minified;
console.log(config);
fs.writeFileSync(configPath, JSON.stringify(config, null, 4));
const app = require("electron").remote.app;
app.relaunch();
app.exit();
}
catch (err) {console.error(err);}
})("development", false);