npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

reliable-ghostping

v1.7.3

Published

A ghostping feature for your discord bot, powered by Reliable

Downloads

22

Readme

Ghost Ping Module 👻: The Ultimate Ghost Ping Prevention Tool


This module is designed to combat ghost pings within your Discord server. Ghost pings occur when a user deletes a message that mentioned another user, leaving the pinged user unaware that they were ever mentioned. Our module steps in to resolve this issue by logging deleted messages that contain mentions, ensuring that the pinged user is still notified. It also provides detailed information about the ghost ping, making it easier for moderators to take appropriate action.


Features:

  • 👤 Detects and logs deleted messages containing mentions.
  • 🔔 Notifies the pinged user, even if the message was deleted.
  • 🛡️ Provides detailed information about the ghost ping.
  • 🚫 Ignores messages from specified users.
  • 📝 Customizable embed messages and field titles.

Setup:

  1. Invite the Bot: Invite the bot to your Discord server.
  2. Grant Permissions: Ensure the bot has the necessary permissions, such as Send Messages and Read Message History.
  3. Configure Options: Customize the settings using the provided options (explained below).
  4. Enable the Module: Call the reliableGhostping function with the desired options.

Options:

  • embedColor: Customize the embed color. (Default: #0099ff)
  • embedTitle: Set the embed title. (Default: Ghost Ping Detected!)
  • embedDescription: Specify the embed description. (Default: A user has deleted a message that mentioned another user.)
  • pingerFieldTitle: Set the field title for the pinger. (Default: Pinger:)
  • pingedFieldTitle: Set the field title for the pinged user. (Default: Pinged:)
  • messageContentFieldTitle: Set the field title for the message content. (Default: Message Content:)
  • footerText: Customize the footer text. (Default: Reliable Ghost Ping Module)
  • footerIconURL: Set the footer icon URL. (Default: URL to the module's icon)
  • ignorelist: Provide an array of user IDs to ignore.
  • logChannelID: Specify the channel ID for logging ghost pings. (Default: null)

Example Usage:

const { reliableGhostping } = require("reliable-ghost-ping");

client.on("ready", () => {
  reliableGhostping(client, {
    logChannelID: "CHANNEL_ID",
    embedTitle: "Ghost Ping Alert!",
    ignorelist: ["USER_ID_1", "USER_ID_2"],
  });
});

Additional Notes:

  • The module listens to both MessageDelete and MessageUpdate events to ensure that deleted and edited messages are handled accordingly.
  • The module handles multiple mentions in the same message.
  • The module gracefully handles errors such as invalid channel IDs or missing permissions.

Node.js and Discord.js Compatibility:

The Reliable Ghost Ping Module is compatible with the latest stable versions of Node.js and Discord.js. As of the time of writing, these versions are, Just little you know, it's daily updated so, if it doesn't work with your node.js or discord.js version. No worries! We can still help you with our support:

  • Node.js: v20.11.0
  • Discord.js: v14.14.1

Join our Discord Server for Support and Updates:

Need help with setting up or using the Reliable Ghost Ping Module? Join our dedicated Discord server: https://dsc.gg/reliable-support. Our friendly community and support team are always ready to assist you. 🌟


Reliable AI for Your Discord Needs:

Looking for an advanced AI to enhance your Discord experience? Discover Reliable AI, a powerful Discord bot that offers a wide range of features, including moderation, auto-moderation and more. Invite Reliable AI to your server today: https://dsc.gg/reliable-bot


Enjoy using the Reliable Ghost Ping Module! 👻