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

7 years ago

1.1.9

7 years ago

1.1.8

7 years ago

1.0.19

7 years ago

1.1.7

7 years ago

1.1.6

7 years ago

1.1.5

7 years ago

1.1.4

7 years ago

1.1.3

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.18

7 years ago

1.0.17

7 years ago

1.0.16

7 years ago

1.0.15

7 years ago

1.0.14

7 years ago

1.0.13

7 years ago

1.0.12

7 years ago

1.0.11

7 years ago

1.0.10

7 years ago

1.0.9

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago