2.0.3 • Published 2 years ago

djs-zetsu v2.0.3

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago
npm install djs-zetsu

Welcome

// 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

// 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

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!
*/
2.0.3

2 years ago

2.0.2

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

1.5.3

2 years ago

1.5.2

2 years ago

1.5.1

2 years ago

1.5.0

2 years ago

1.0.0

2 years ago

0.5.0

2 years ago