2.0.0 • Published 2 years ago

unicord v2.0.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
2 years ago

Unicord

NPM Version NPM Downloads

About

Unicord is a Library that simplifies coding to make Discord Bots with ease.

  • Interaction Commands Support
  • Optimized and customizable
  • 500+ functions available

Installation

Node.JS 12.11.0 or newer is required.

npm install unicord

Setting up

const unicordjs = require("unicord")

const bot = new unicord.Bot({
token: "TOKEN",
prefix: "PREFIX",
intents: "all"
})

bot.onMessage() //Allows to execute Commands

bot.command({
name: "ping", //Trigger name (command name)
code: `Pong! $pingms` //Code inside of string
})

bot.readyCommand({
    channel: "", //Optional channnel ID
    code: `$log[Ready on $userTag[$clientID]]`
})

Optional packages

  • tweetnacl for music encryption (npm install tweetnacl)
  • @discordjs/opus for encoding, primarily used for Music (npm install @discordjs/opus)

Links

Contributing

Please read Contributing