
Security News
Package Maintainers Call for Improvements to GitHub’s New npm Security Plan
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
@klasa/core
Advanced tools
This is an early alpha discord library which will be the future core of the Klasa Bot framework. This implements a high-level stateful interface over @klasa/rest and @klasa/ws. You are bound to come across missing or broken code/types using this alpha library. (I even found some unintended types while writing this!) Please make issues and pull requests to further the development.
Simple ping client in typescript
import { Client, ClientEvents } from '@klasa/core';
import config from './config.json';
const client = new Client()
.on(ClientEvents.MessageCreate, async (message): Promise<void> => {
if (message.author.bot) return;
if (message.content.toLowerCase().startsWith('ping')) {
const [response] = await message.channel.send(mb => mb.setContent('ping?'));
await response.edit(mb => mb.setContent(`Pong! Took: ${response.createdTimestamp - message.createdTimestamp}ms`));
}
});
client.token = config.token;
client.connect();
Simple ping client in javascript
const { Client } = require('@klasa/core');
const { token } = require('./config.json');
const client = new Client()
.on('messageCreate', async (message) => {
if (message.author.bot) return;
if (message.content.toLowerCase().startsWith('ping')) {
const [response] = await message.channel.send(mb => mb.setContent('ping?'));
return response.edit(mb => mb.setContent(`Pong! Took: ${response.createdTimestamp - message.createdTimestamp}ms`));
}
});
client.token = token;
client.connect();
FAQs
wip-concept
We found that @klasa/core demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 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
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.