discord-bot-server
v0.1.1
Published
discord-bot-server
Downloads
2
Readme
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