0.0.1 • Published 3 years ago

discordeasyreactions v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

❔ About

❔ About DiscordEasyReactions

An effective & easy-to-use package for making discord.js reaction prompts. Built using discord.js version 12. However, DiscordEasyReactions will work on older versions.

📋 Information

❕ Required Programes & Dependencies

This package REQUIRES node.js. Without it, this package cannot run nor download. You'll also need the package Discord.js. When done, run the command bellow in your terminal. npm install DiscordEasyReactions

❗ Example

Need help using my package? Simple! You must get your discord bot token for this to work.

// Librarys //
const Discord = require("discord.js")
const DiscordEasyReactions = require("discordeasyreactions")

// Bot //
const Bot = new Discord.Client({
  partials: ["MESSAGE", "CHANNEL", "REACTION"],

  presence: {
    activity: {
      name: `Example bot for the package DiscordEasyReactions!`,
      type: "PLAYING"
    },
    status: "online"
  }
})

const Prefix = "^"

// Code //
Bot.on("message", (message) => {
    if (message.author.bot){
        return
    }

    if (!message.content.startsWith(Prefix)){
        return
    }

    const Arguments = message.content
        .slice(Prefix.length)
        .trim()
        .split(/ +/g)
    const command = Arguments.shift()

    if (command.toLowerCase() == "prompt"){
        DiscordEasyReactions.ReactionPrompt(message, message.author.id, ["👍", "👎"])

        // Message can be an embed too! If you need help doing so, join my discord server below.
    }
})

console.log("---------- Logging into Bot ----------") 
Bot.login("YourBotTokenFromDiscordDeveloperHubGoesHere")

⁉ Support

If you acquire help, we ask that you join KingCh1ll's Server on Discord & open a ticket. If you dont have discord, you may open up a discussion!

0.0.1

3 years ago