1.4.2 • Published 5 years ago

bot-utils v1.4.2

Weekly downloads
53
License
MIT
Repository
github
Last release
5 years ago

Bot-Utils

NPM

npm version Downloads CircleCI semantic-release All Contributors

Easy to use utilities for JavaScript written Discord bots. Or you can use them any Javascript program...

For the version using classes visit here Don't do this right now... It's way behind and not working correctly.

Contributing

If you wish to contribute to bot-utils continued development make sure to take a look at this file.

Method Documentation

MethodExtendsDescription
Array.shuffle()ArrayShuffles the attached array
Array.random()ArrayPicks a random item from the attached array
Object.isArray()ObjectReturns whether or not the attached object is actually an array
snowflake(snowflake)N/AReturns the date of given snowflake
cpuUsage()N/AReturns the CPU usage for the time when it was called
randColor()N/AReturns a random # prefixed Hex colour code
randInt(min, max)N/AReturns a random integer from a range of mid to max
randAlphaNum(len)N/AReturns a random alphanumeric
round(number, decimal-place)N/AReturns a the given number rounded to the given decimal-place
hasNumber(string)N/AReturns a boolean based on whether the supplied string contains a number or not
isNumber(input)N/AReturns a boolean based on whether the supplied input is a number or not
uptime()N/AReturns process uptime formatted into a human readable string

Contributors ✨

Thanks goes to these wonderful people (emoji key):

This project follows the all-contributors specification. Contributions of any kind welcome!

1.4.2

5 years ago

1.4.1

5 years ago

1.4.0

5 years ago

1.3.0

5 years ago

1.5.2

5 years ago

1.5.1

5 years ago

1.0.0

5 years ago

1.2.1

6 years ago

1.2.0

6 years ago

1.1.9

6 years ago

1.1.8

6 years ago

1.0.19

6 years ago

1.1.7

6 years ago

1.1.6

6 years ago

1.1.5

6 years ago

1.1.4

6 years ago

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.18

6 years ago

1.0.17

6 years ago

1.0.16

6 years ago

1.0.15

6 years ago

1.0.14

6 years ago

1.0.13

6 years ago

1.0.12

6 years ago

1.0.11

6 years ago

1.0.10

6 years ago

1.0.9

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago