discord-bot-server
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

Discord DiscordBot Server

It is an easy-to-use discord.js library

import { createDiscordBot } from 'discord-bot-server';

createDiscordBot({
  token: YOUR_DISCORD_BOT_TOKEN,
  clientId: YOUR_CLIENT_ID,
  controllerConfig: {
    prefix: '~',
  },
  controllers: [
    {
      command: 'hello',
      description: 'Say, Hello!',
      action: ({ message }) => {
        message.channel.send('Hello, World!');
      },
    },
  ],
})
  .then(() => {
    console.log('✅ SUCCESSES');
  })
  .catch(console.error);

Installation

$ npm install discord-bot-server

Readme

Keywords

none

Package Sidebar

Install

npm i discord-bot-server

Weekly Downloads

0

Version

0.1.1

License

MIT

Unpacked Size

27.4 kB

Total Files

17

Last publish

Collaborators

  • seung-juv