botware-discord
v1.0.2
Published
Simplify the process of setting up your Discord bot
Downloads
4
Readme
Botware Discord
The easiest way to create your own discord bot today!
Install
npm i botware-discord
Usage
All you have to do to create a bot with our package is provide a simple configuration and list of commands.
import { startDiscordBot } from 'botware-discord'
import { DiscordBotCommand } from 'botware-discord/lib/interfaces/command'
import 'dotenv/config'
(async () => {
const commands: DiscordBotCommand[] = [{
name: 'ping',
description: 'Replies with Pong!',
action: async (
interaction
) => {
await interaction.reply('Pong!')
}
}]
const config = {
token: process.env.TOKEN!,
clientId: process.env.CLIENT_ID!,
}
startDiscordBot(commands, config)
})()