🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis
Socket
Book a DemoInstallSign in
Socket

discord-sempai

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

discord-sempai

Simplified package for creating bots in Discord

latest
Source
npmnpm
Version
0.3.6
Version published
Weekly downloads
1
-50%
Maintainers
1
Weekly downloads
 
Created
Source

Discord sempai

NPM Version NPM Downloads

Discord sempai is a library for creating Discord bots using Discord.js.

Installation

To install Discord sempai, follow these steps:

  • Install Node.js on your computer.
  • Open the terminal and navigate to the directory where your project will be located.
  • Enter the following command: npm install discord-sempai

Usage

To start using Discord sempai, follow these steps:

  • Create a new Node.js project.
  • Install Discord sempai, as described above.
  • Import the library into your project:
const { Bot } = require('discord-sempai');
// Create a new instance of Bot:

const bot = new Bot({
  prefix: ["!", "%"],
  status: "dnd"
});
// Use the library's methods to create the necessary functionality for your bot.

bot.createEvent({
  name: 'ready',
  code: (client) => {
  console.log(`Logged in as ${client.user.tag}!`);
  }
});

bot.command({
  name: 'ping',
  code: (client, message, args) => {
   message.reply("Pong " + client.ws.ping)
  }
});

bot.connect("DISCORD_BOT_TOKEN");

Documentation

In development.

License

Discord sempai is available under the MIT license. See the LICENSE file for more information.

FAQs

Package last updated on 14 May 2023

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