Socket
Socket
Sign inDemoInstall

meinu

Package Overview
Dependencies
3
Maintainers
1
Versions
108
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    meinu

A discord.js wrapper, with a focus on slash commands.


Version published
Weekly downloads
6
increased by200%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Meinu

Discord server npm version npm downloads

A discord.js wrapper, with a focus on slash commands.

Installation

% bun add meinu

Usage

import { Meinu, Command } from 'meinu';

let commands = [
	new Command<Meinu>({
		name: 'ping',
		description: 'Pong!',
		dmPermission: true, // default: false
		ownersOnly: true, // default: false
		nsfw: true, // default: false
		global: true, // default: false
	}).addHandler('chatInput', async (bot, int) => {
		const sent = await int.deferReply({
			fetchReply: true
		});
		const diff = sent.createdTimestamp - int.createdTimestamp;
		return int.editReply({
			content: `🏓 Pong! ${diff}ms`
		});
	})
];

new Meinu({
	name: 'MyBot',
	color: 'LuminousVividPink',
})
	.register_commands(commands) // registers commands per guild, Command.global for global commands
	.init(); // starts the bot, .init(TOKEN) if process.env.TOKEN is not set

FAQs

Last updated on 18 Mar 2024

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc