Discord sempai
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.