Security News
Opengrep Emerges as Open Source Alternative Amid Semgrep Licensing Controversy
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
@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 251 weekly downloads. As such, @grammyjs/emoji popularity was classified as not popular.
We found that @grammyjs/emoji demonstrated a not healthy version release cadence and project activity because the last version was released 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
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.