1.0.2 • Published 7 months ago

botware-discord v1.0.2

Weekly downloads
-
License
ISC
Repository
github
Last release
7 months ago

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)
})()
1.0.2

7 months ago

1.0.1

7 months ago

1.0.0

7 months ago