# djs-zetsu

> Djs-zetsu is a npm made for discord.js users to make their work easier! Checkout the functions of this NPM to know more.

Latest version **2.0.3** (published 2022-02-11) · ISC license · 0 weekly downloads

## Install

```sh
npm install djs-zetsu
pnpm add djs-zetsu
yarn add djs-zetsu
bun add djs-zetsu
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.3 |
| Published | 2022-02-11 |
| First published | 2022-01-28 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 148.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Akshansh Srivastava |
| Maintainers | mrwarriyo00 |
| Keywords | djs, djs-zetsu, mr-warriyo, discordjs, discord, discord_bots |

## Links

- npm: https://www.npmjs.com/package/djs-zetsu
- Repository: https://github.com/Mr-warriyo/djs-zetsu
- Homepage: https://github.com/Mr-warriyo/djs-zetsu#readme
- Issues: https://github.com/Mr-warriyo/djs-zetsu/issues
- npm.io page: https://npm.io/package/djs-zetsu

## Dependencies (3)

- [djs-zetsu](https://npm.io/package/djs-zetsu.md) ^1.5.1
- [discord.js](https://npm.io/package/discord.js.md) ^13.6.0
- [@discordjs/node-pre-gyp](https://npm.io/package/@discordjs/node-pre-gyp.md) ^0.4.2

## Recent versions

- 2.0.3 (latest) — 2022-02-11
- 2.0.2 — 2022-01-31
- 2.0.1 — 2022-01-31
- 2.0.0 — 2022-01-29
- 1.5.3 — 2022-01-29
- 1.5.2 — 2022-01-28
- 1.5.1 — 2022-01-28
- 1.5.0 — 2022-01-28
- 1.0.0 — 2022-01-28
- 0.5.0 — 2022-01-28

## README

<h1 align="center"> Hello! </h1>

<p align="center"> Djs-zetsu is a npm made for discord.js users to make their work easier! Checkout the functions of this NPM to know more. </p>

<hr />

<h3 align="center"> Install </h3>

```js
npm install djs-zetsu
```

<hr />

<h3 align="center"> Features </h3>

<ul style="list-style: square">
<li> <a href="#Welcome"> Welcome </a> </li>
<li> <a href="#Leave"> Leave </a> </li>
<li> <a href="#RPS"> Rock Paper Scissors </a> </li>

</ul>

<hr />

<h3 align="center"> Code Examples </h3>

# Welcome
```js
// Define Your DISCORDJS CLIENT & Import Important Things
const { Intents, Client } = require("discord.js")
const client = new Client({
  intents: [
    Intents.FLAGS.GUILDS,
    Intents.FLAGS.GUILD_MEMBERS,
    Intents.FLAGS.GUILD_MESSAGES,
    Intents.FLAGS.DIRECT_MESSAGES,
  ],
  params: ["CHANNEL"],
})

// Import Welcome Func
const { welcome } = require("djs-zetsu")

// Use it
welcome(client, {
  DMmessage: `@MEMBER Thanks for Joining @GUILD`, // Message that will be sent in DM
  message: `@MEMBER Just Hopped into the Server!`, // Message that will be sent in Channel
  channelId: `922497844798181497`, // Channel Id where message will be sent
}) // Welcome func

// You can either use one of DMmessage/message or use both

// DMmessage only:
welcome(client, {
  DMmessage: `@MEMBER Thanks for Joining @GUILD`, // Message that will be sent in DM
})

// Channel only:
welcome(client, {
  message: `@MEMBER Just Hopped into the Server!`, // Message that will be sent in Channel
  channelId: `922497844798181497`, // Channel Id where message will be sent
})

/**
* FLAGS: Yes! This Function comes with FLAGS
* FLAGS are OPTIONAL
* @MEMBER => Member who Joined
* @GUILD => Name of Server in which Member Joined
*/
```

# Leave
```js
// Define Your DISCORDJS CLIENT & Import Important Things
const { Intents, Client } = require("discord.js")
const client = new Client({
  intents: [
    Intents.FLAGS.GUILDS,
    Intents.FLAGS.GUILD_MEMBERS,
    Intents.FLAGS.GUILD_MESSAGES,
    Intents.FLAGS.DIRECT_MESSAGES,
  ],
  params: ["CHANNEL"],
})

// Import Leave Func
const { leave } = require("djs-zetsu")

// Use it
leave(client, {
  message: `@MEMBER Just left us!`, // Message that will be sent in Channel
  channelId: `922497844798181497`, // Channel Id where message will be sent
}) // Leave func

/**
* FLAGS: Yes! This Function comes with FLAGS
* FLAGS are OPTIONAL
* @MEMBER => Member who Left
* @GUILD => Name of Server from which Member Left
*/
```

# RPS
```js
const { rps } = require("djs-zetsu")

rps(interaction, { // Your Interaction
    embedColor: "RANDOM", // hex code allowed
})

/** NOTE:
  * In the same interaction/slashCommand add a option
  * with ->
  * name: "opponent", 
  * type: "USER", 
  * required: true, 
  * description: "Your Opponent of the Game"
  * Name MUST be opponent in small letters!
*/
```

---
_Source: https://npm.io/package/djs-zetsu · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
