JSPM

  • Created
  • Published
  • Downloads 447
  • Score
    100M100P100Q92954F
  • License MIT

Simple discord bot framework to set up a bot under 30 secondes

Package Exports

  • @spatulox/simplediscordbot

Readme

Simple Discord Bot badge-status

npm version downloads license

TypeScript Discord.js framework - Simple, powerful, framework-ready. Built for developers who want clean bot architecture.

✨ Features :

  • Fully compatible with discordjs
  • Include the DiscordInterationManager package
  • Simple Log package
  • Provides easy Managers to avoid repetitive code everywhere
  • Simple yet powerful builders (Embeds, Modals, SelectMenus, Components) that rely on discord.js for full compatibility

Installation

npm i @spatulox/simplediscordbot

Quick Start

Env Variables:

DISCORD_BOT_TOKEN="" // Your bot Token
DISCORD_BOT_CLIENTID="" // Yout bot client id
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! ✨");
});