1.0.2 • Published 3 years ago

discord-reacts v1.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

discord-reacts

Best package for reacting every discord messages like:

  • When user send message
  • When someone ping user
  • When someone say some word
  • When server owner send message

Follow me: https://github.com/kristabbhattarai

Support Server: https://kristab.ml/server or https://discord.gg/EZDfrer

Change logs

  • Custom emoji for owner
  • Changed WordsReact to WordReact
  • Updated changes in examples

Things to know

  • Must have latest discord.js
  • Only 1 emoji is supported
  • Unlimited users are supported
  • Need to make different discord message event for different emoji

Require discord-reacts

const { UsersReact, PingsReact, OwnerPingReact, WordReact, LoadNotification } = require("discord-reacts");

Examples:

UsersReact:

  • Reacts the messages of given users with the given emoji.
  • Can be used 1 universal emoji like 🙂 or 1 discord animated or normal emoji
  • Unlimited user supported
const { UsersReact } = require("discord-reacts");
const Discord = require("discord.js");

const client = new Discord.Client()

client.on("ready", async () => {
    LoadNotification();
    console.log(`${client.user.tag} is now online.`);
    });

    client.on("message" , message => {

        const id = ["userid1", "userid2", "userid3"]; //use same format for unlimited users
        const emoji = "emoji"; //only 1 emoji supported

        UsersReact(id , emoji , message);
    })

client.login("BotToken");

PingsReact:

  • Reacts the messages when someone ping the user
  • Can be used 1 universal emoji like 🙂 or 1 discord animated or normal emoji
  • Unlimited user supported
const { PingsReact } = require("discord-reacts");
const Discord = require("discord.js");

const client = new Discord.Client()

client.on("ready", async () => {
    LoadNotification();
    console.log(`${client.user.tag} is now online.`);
    });

    client.on("message" , message => {

        const id = ["userid1", "userid2", "userid3"]; //use same format for unlimited users
        const emoji = "emoji"; //only 1 emoji supported

        PingsReact(id , emoji , message);
    })

client.login("BotToken");

OwnerPingsReact:

  • Reacts the messages when someone ping server owner
  • Can be used 1 universal emoji like 🙂 or 1 discord animated or normal emoji
const { OwnerPingReact } = require("discord-reacts");
const Discord = require("discord.js");

const client = new Discord.Client()

client.on("ready", async () => {
    LoadNotification();
    console.log(`${client.user.tag} is now online.`);
    });

        client.on("message" , message => {

        const emoji = "emoji" //only 1 emoji supported

        OwnerPingReact(emoji , message);

    })

client.login("BotToken");

WordReact:

  • Reacts the message when someone say something
  • Can be used 1 universal emoji like 🙂 or 1 discord animated or normal emoji
  • Only 1 word is supported in one discord message event
const { WordReact } = require("discord-reacts");
const Discord = require("discord.js");

const client = new Discord.Client()

client.on("ready", async () => {
    LoadNotification();
    console.log(`${client.user.tag} is now online.`);
    });

    client.on("message" , message => {

        const words = "word"; //only 1 word
        const emoji = "emoji"; //only 1 emoji

        WordReact(words , emoji , message);
    })

client.login("BotToken");