0.7.0 • Published 2 years ago
@simpledjs/framework v0.7.0
About
A framework built with discord.js and the sapphire framework to make discord bot development easier
Installation
npm install @simpledjs/framework
yarn add @simpledjs/framework
pnpm add @simpledjs/framework
Example usage
Install the required dependencies:
npm install @simpledjs/framework
yarn add @simpledjs/framework
pnpm add @simpledjs/framework
Making a client:
const SDJS = require("@simpledjs/framework");
// Automatically logs in the client
const client = new SDJS.Client({
intents: [], // required
token: "BOT_TOKEN" // required
});
Making a command in the same file as the client:
client.command(
"example",
`
content.set("content text");
embed();
embed.description("embed");
reply(true);
`
);
Making a command in a seperate directory:
module.exports = {
trigger: "example",
code: `
content.set("content text");
embed();
embed.description("embed");
reply(true);
`
};
Links
- Documentation (temporary docs)
- simple.djs Discord Server
- simple.djs GitHub
- NPM
Contributing
Before you create an issue, please take a look if it has already been reported or suggested, also check the latest documentation.
Help
If you are having problems with simple.djs, you are welcome to join the simple.djs Server
0.7.0
2 years ago