discord-bot-utility
v0.1.0
Published
A unique JavaScript library for Discord bots with modern features and extensibility.
Downloads
6
Maintainers
Readme
mat653653 Discord Bot Utility Library
A modern, extensible JavaScript/TypeScript library for building Discord bots with unique features.
Installation
npm install mat653653
Usage
Import the library in your project:
import { Mat653653Bot, DiscordApiHelper, CommandManager, Logger } from 'mat653653';Example
See the examples/ directory for sample Discord bot code using this library.
Features
- Dynamic command loading
- Advanced permission system
- Rate limiting
- Context-aware responses
- Plugin system
- Built-in logging
- Scheduler
- Interactive prompts
- Localization
- Discord API helpers
API Reference
Mat653653Bot
const bot = new Mat653653Bot('YOUR_BOT_TOKEN');
const user = await bot.getUser('USER_ID');
const guild = await bot.getGuild('GUILD_ID');
const channel = await bot.getChannel('CHANNEL_ID');
const messages = await bot.getMessages('CHANNEL_ID', 10);
const member = await bot.getMember('GUILD_ID', 'USER_ID');DiscordApiHelper
DiscordApiHelper.getUserTag({ username: 'user', discriminator: '1234' });
DiscordApiHelper.isValidId('123456789012345678');CommandManager
const manager = new CommandManager();
manager.register({ name: 'ping', execute: () => Logger.info('Pong!') });
manager.execute('ping');License
MIT
