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

discord.easier

v1.3.1

Published

This module was created to ease the creation of your Discord Bot.

Downloads

1

Readme

discord.easier

This module was created to ease the creation of your Discord Bot.

Contents


Notes

The "easy methods" are methods with default elements that you can choose as you like. These methods start with "easy_" in their name.


Easy methods

easy_message

const discordEasier = require("discord.easier");
const bot = new discordEasier.Bot();
bot.easy_message(true, "!", ["say", "avatar"]);

This method has 3 parameters:

1 - Boolean: If is false, Bots will be able to reply to commands; otherwise, if is true, Bots will not be able to reply to commands (it is recommended to set this parameter to true).

2 - String: Your Bot's prefix.

3 - Array: Inside the array you can put any of the default commands we have for you:

say - avatar - help - ping

easy_ready

const discordEasier = require("discord.easier");
const bot = new discordEasier.Bot();
bot.easy_ready("Hello! This is the name of my presence", "WATCHING");

This method has 2 parameters:

1 - String: Name of your presence.

2 - String: Type of your presence. This parameter must include one of the following words:

PLAYING - WATCHING - LISTENING.

easy_guildMemberAdd

Note: To use this method, you must have intents activated from your application on the Discord Developer Portal.

const discordEasier = require("discord.easier");
const bot = new discordEasier.Bot();
bot.easy_guildMemberAdd("796219578580467746", "Welcome to server {member}!");

This method has 2 parameters:

1 - String: Channel ID.

2 - String: Content of the message to send. Here some keywords:

{member} | Mention the new member.
{member.id} | New member ID.
{member.username} | New member's username.
{member.avatar} | New member's avatar URL.
{guild.name} | The name of the server.
{guild.id} | The id of the server.
{guild.icon} | The icon of the server.
{guild.banner} | The banner of the server.

Methods

login

const discordEasier = require("discord.easier");
const bot = new discordEasier.Bot();
bot.login("My Discord Bot TOKEN");

This method has 1 parameter:

1 - String: Your Discord Bot token.


message

Note: This method is under development. Only the parameters shown below are available.

const discordEasier = require("discord.easier");
const bot = new discordEasier.Bot();
bot.message(true, "!", ["ping", "Pong!", "hi", "Hello!", "bye", "Bye!"]); // You must put the commands in lowercase.

This method has 3 parameters

1 - Boolean: If is false, Bots will be able to reply to commands; otherwise, if is true, Bots will not be able to reply to commands (it is recommended to set this parameter to true).

2 - String: Your Bot's prefix.

3 - Array: Your commands and responses. Follow this:

[command, answer, command, answer]

ready

const discordEasier = require("discord.easier");
const bot = new discordEasier.Bot();
bot.ready(["Hello!", "Wow!"], "PLAYING", true, 50, "I'm ready!");

This method has 5 parameters

1 - Array: The name(s) of your presence(s).

2 - String: Type of your presence. This parameter must include one of the following words:

PLAYING - WATCHING - LISTENING.

3 - Boolean: If is false, your presence will not be random; otherwise, if is true, your presence will be random.

4 - Number: The time that will pass between each presence (if the above parameter is false, set any number).

5 - String: This message will be displayed on the console when your Bot is ready.

Contact

Gmail: [email protected]

Discord support server: https://discord.gg/wdnkkjNjjr

Discord username: Kiwisitoo#9400