1.1.6 • Published 2 years ago

whitetext v1.1.6

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

whitetext

whitetext

An NPM package to make managing several bots easier.

.randomMedia(databaseObject) {media} - A command to select a random piece of media out of a pre-inputted array.
@databaseObject - The array for the media to be picked out of. returns: array Element (Randomized piece of media)

.wrapText(paragraph, linelength) {text} - A command that wraps a text to a pre-defined number of characters per line.
@paragraph - The paragraph to be wrapped.
@linelength - The number of characters a line should be wrapped to.
returns: array (Contains every line as an element of the array.)

.discordListGuildEmotes(customFormat, message) {length, finalEmotes} - A command that lists all of the emotes in a discord guild.
@customFormat - The number of emotes to be put in every line of text.
@message - The message containing the command. returns: string Object (finalEmotes - The list of all of the emotes); number Object (length - The number of emotes).

.discordListGuildChannels(customFormat, message) {length, finalChannels} - A command that lists all of the channels in a discord guild.
@customFormat - The number of channels to be put in every line of text.
@message - The message containing the command.
returns: string Object (finalChannels - The list of all of the channels); number Object (length - The number of channels).

.discordMessageMentions(message) {finalmMemberList, memberArray} - A command that lists all of the members pinged in a message.
@message - The message which needs to be checked.
returns: array (finalMemberList - List of members pinged.); array (memberArray - List of user IDs of members pinged.)

.dateConverter(daysDifference, message) {irlDate, fictionalDate} - A command that converts a real life date into a fictional date using a fixed day difference.
@daysDifference - The difference of days between the fictional date and IRL date.
@message - The message containing the command.
returns: string Object (irlDate - Real life date); string Object (fictionalDate - Fictional Date)

1.1.6

2 years ago

1.1.5

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.0

2 years ago