Package Exports
- @spatulox/simplediscordbot
- @spatulox/simplediscordbot/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@spatulox/simplediscordbot) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Simple Discord Bot 
Framework Discord.js TypeScript ultra-simple
Installation
npm i @spatulox/simplediscordbotTypeScript Discord.js framework - Simple, powerful, framework-ready. Built for developers who want clean bot architecture.
Quick Start
import {Bot, BotConfig, EmbedColor, Time} from "@spatulox/simplediscordbot";
import {Client, Events, GatewayIntentBits} from "discord.js";
const client = new Client({
intents: [GatewayIntentBits.Guilds, GatewayIntentBits.GuildMessages]
});
const config: BotConfig = {
defaultEmbedColor: EmbedColor.blue,
botName: "Simple Discord Bot",
log: {
logChannelId: "YOUR_LOG_CHANNEL_ID",
errorChannelId: "YOUR_ERROR_CHANNEL_ID",
info: { console: true, discord: true },
error: { console: true, discord: true },
warn: { console: true, discord: true },
debug: { console: true, discord: false }
}
};
const bot = new Bot(client, config);
bot.client.on(Events.ClientReady, async () => {
Bot.setRandomActivity(randomActivityList, Time.minute.MIN_10.toMilliseconds());
console.log("Bot ready! ✨");
});