npm.io
0.7.0 • Published 4 years ago

@simpledjs/framework

Licence
MIT
Version
0.7.0
Deps
7
Size
65 kB
Vulns
0
Weekly
0

Discord Oversimplified Logo


Discord Server NPM Version NPM Downloads

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);
	`
};

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

Keywords