1.0.5 • Published 3 years ago

@felipespirit/simple-bot-discord v1.0.5

Weekly downloads
7
License
ISC
Repository
github
Last release
3 years ago

Simple Bot DIscord

Customizable discord bot. Ready to set the commands and responses. Bot de discord personalizable. Listo implementar comandos y respuestas

Installation | Instalación

En la consola coloca | On the console type: npm i @felipespirit/simple-bot-discord

Usage | Uso

import { Bot } from "./bot";

export  class  CustomBot  extends  Bot{
    constructor(){
        super("prefix ","TOKEN");
    }

    protected  init() {
        this.addCommands(
            { 
                names:['test', 't'],
                listener: message=> message.channel.send("You request a Test!")
            }
        )
    }
}

var bot = new CustomBot();

bot.start().then(res=>{
    console.log("Logged in!")
}).catch(err=>{
    console.log("Oh no");
})

or you can use the fastBot function | o puedes utilizar la función fastBot:

import { Bot } from "./bot";

Bot.fastBot(
    "prefix ",
    "TOKEN", 
    [{names:['test'], listener:m=>m.reply("Test")}]
).start().then(res=>{
    console.log("Logged in")
}).catch(err=>{
    console.log("Error")
})
1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago