1.0.0 • Published 5 years ago

deadly-bot-functions v1.0.0

Weekly downloads
4
License
ISC
Repository
github
Last release
5 years ago

What is this?

This is a package that contains lots of handy discord bot functions.

Installation

npm i deadly-bot-functions or npm install deadly-bot-functions

Dependencie

This package needs discord.js to work

How to use

First we start with importing the functions you want. Here is list with all functions:

  • ReactionMessage
  • BotUptime

  • more soon....

To import the functions start by doing this:

import { ReactionMessage, BotUptime } from 'deadly-bot-functions';

if you only need for example ReactionMessage just typ in BotUptime.

Now we have imported the functions we can start using it.

Here you can see an example how To use the ReactionMessage function

    message.channel.send("The Message where the reactions are for").then(async msg => {

        var emoji = await ReactionMessage(msg, message.author, ["👍", "👎"]);

        if(emoji === "👍") {
            //Do something
        } else if(emoji === "👎") {
            //Do this
        }
    })

Here is an example how to use the BotUptime fuction.

message.channel.send(Uptime: ${BotUptime(bot.uptime)})

Extra

We are still working on lots of more fuctions. If you need help or want to report a bug or want to place a suggestion feel free to join our discord server.

Join Discord Server

1.0.0

5 years ago