Dorpier is a work-in-progress script-based, developer experience focused Discord client mod!
You can clone and build a development version by running the following (assuming node.js and git are installed):
npm install -g pnpm rollup
git clone https://github.com/dorpier/dorpier
pnpm install
pnpm build
You can then run the contents of dist.js
in the client.
As of now, we don't have an extension or injector ready.
If you want to use Dorpier right now, you have two options:
Note that CSP has to be disabled for this to work.
- Open Developer Tools on the webapp or desktop client.
- Input the following:
fetch(
"https://raw.githubusercontent.com/dorpier/dists/master/dist.js"
)
.then((response) => response.text())
.then((data) => new Function(data)());
- Press enter, and you should see something like this:
- If you do, congrats! Dorpier has been injected.
Simply import from the URL https://raw.githubusercontent.com/dorpier/dists/master/dist.js
.
Run this script after injection.
client = new Client();
client.on("message_create", async function(d) {
let message = d.message;
if (message.content == "!ping" && message.author.id === client.user.id) {
await client.sendEphemeralMessage(message.channel_id, "Pong!");
}
});
client.connect();
Say ping
in any channel in Discord, and it should respond with pong
! If it does, then you did everything right; Dorpier is working! Now, you can get to making your own scripts.