1.0.7 • Published 5 years ago

disjs-utilities v1.0.7

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

disjs-utilities

A package that helps you in creating your Discord.js Bot.

Index

About

disjs-utilities is a NodeJS package that will save your time!

Updates

Please note, I am aware that some commands do not work well, I am fixing.

  • v1.0.7
    • Added .setStatus command.

Requirements

  • Discord.js v12 or newer
  • Node.js 12 or newer

Installation

Just open your Terminal/Command Prompt and then write npm i discordjs-utilities. If you don't have Discord.js, also write npm i discord.js.

Example Usage

const Discord = require('discord.js')
const client = new Discord.Client()
const util = require('disjs-utilities')

util.onReady('Example Bot is online!', 'disjs-utilities', 'WATCHING')

bot.on("message", async message => {
if(message.author.bot) return;
if(message.channel.type === "dm") return;
const prefix = "!"

if(message.content === prefix + "testMsg")
util.sendMsg('Coming soon!', 'channel')
}

if(message.content === prefix + 'testEmbed') {
util.sendEmbed('Important', 'Coming soon!', 'disjs-utilities')
}

client.login('YOUR_TOKEN')

All Commands

  • util.onReady(logmsg, statusmsg, statustype)

    • Event onReady without writing many lines of code.
  • util.sendMsg(msg, type)

    • Sends a Message on channel or dm.
  • util.sendEmbed(titlemsg, descriptionmsg, footermsg)

    • Sends an Embed without writing many lines of code.
  • util.setStatus(msg, type, url)

    • Sets a status without writing a long line of code.

    Other Commands are Coming Soon!!

    Links

  • GitHub Repository

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago