New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

discord-emojify

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

discord-emojify

An NPM package that converts words to text. In short, an emojifier.

  • 1.0.9
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

discord-emojify

What is discord-emojify?

It is an NPM package that converts most text into emoji letters/numbers/symbols. In short, emojifying.

What do you need?

  • Node.js v12+
  • discord.js v12
  • An average-sized brain

Get Started

To get started, do this:

npm install discord-emojify

Here is a code example of using discord-emojify.

const Discord = require("discord.js");
const client = new Discord.Client();

const settings = {
  token: "TOKEN_HERE",
  prefix: "!"
}

const emojify = require("discord-emojify"); // Require the package.

// You can use any prefix, this is only an example!
client.on("ready", () => {
  console.log(`Logged in and ready! Bot: ${client.user.tag}`);
});

client.on("message", async message => {
  if (message.author.bot || message.content.toLowerCase().startsWith(settings.prefix)) return;
  
  const args = message.content.slice(prefix1.length).trim().split(/ +/);
  const command = args.shift().toLowerCase();

  if (command === "emojify") {
    if (!args.length) return message.channel.send("Provide arguments to emojify!");
    const emojified = await emojify(args.join(" ")) // Emojify all arguments!
    message.channel.send(emojified);
  }
});

client.login(settings.token);

Note: You have to either use async/await or promises, or else the package won't function.

If you need more support, join the Discord server.

Changelog for v1.0.7

  • Fixed server emoji bug

Keywords

FAQs

Package last updated on 18 May 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc