1.0.9 • Published 4 years ago

rank-card-generator v1.0.9

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

rankcard-generator is a tool that can be used to generate a current rank card for a level up system using discord.js

Installation

npm i rank-card-generator

Usage

ctx.rankcard(emptyFillColour, barFillColour, currentLevel, currentXP, xpToNextLevel, member)

Function Parameters Explained

  • emptyFillColour - A Hexadecimal colour for the background fill of the progress bar
  • barFillColour - The colour of the progress bar itself(Hexadecimal Colour)
  • currentLavel - The level the member is currently at
  • currentXP - The current amount of XP the member posseses
  • xpToNextLevel - The amount of XP the member requires to level up
  • member - GuildMember instance from discord.js, required for the member's display name

Prerequisistes

To use this package please First make sure you have the Following packages installed

  • discord.js
  • canvas
  • canvas-extras

Links

Credit to ohtrobinson for the canvas-extras package. Without it this package would not have been possible!

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago