Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
@grammyjs/emoji
Advanced tools
Use emoji names instead of Unicode strings. Copy-pasting emoji sucks.
Adds emoji parsing for grammY. Check out the official documentation to learn more about this plugin.
Using npm:
npm install @grammyjs/emoji
Using Yarn:
yarn add @grammyjs/emoji
Using Deno:
import {/* ... */} from "https://deno.land/x/grammy_emoji/mod.ts";
import { Bot, Context } from "grammy";
import { EmojiFlavor, emojiParser } from "@grammyjs/emoji";
type MyContext = EmojiFlavor<Context>;
const bot = new Bot<MyContext>(""); // <-- put your bot token between the ""
bot.use(emojiParser());
bot.command("ping", async (ctx) => {
// Don't know emoji names? No problem!
// Press Ctrl + Space on supported editors to
// see IntelliSense auto-completion magic.
await ctx.reply(ctx.emoji`Pong! ${"ping_pong"}`);
// > Pong! 🏓
});
bot.command("start", async (ctx) => {
await ctx
.replyWithEmoji`Welcome to my bot! ${"grinning_face_with_big_eyes"}`;
// > Welcome to my bot! 😀
});
bot.start();
Contributions are more than welcome! Just make sure if there is already a similar PR, so you can contribute from there.
FAQs
Use emoji names instead of Unicode strings. Copy-pasting emoji sucks.
The npm package @grammyjs/emoji receives a total of 253 weekly downloads. As such, @grammyjs/emoji popularity was classified as not popular.
We found that @grammyjs/emoji demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
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.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.