ihorizon-tools
v1.9.0
Published
An helper to use HorizonGateway and the iHorizon tools!
Readme
iHorizon-Tools
(TEMP DOCS)
Module {
axios: AxiosClass {
request: [AsyncFunction: request],
head: [AsyncFunction: head],
get: [Function: get],
post: [Function: post],
put: [Function: put],
handleRequestError: [Function: handleRequestError],
},
captcha: [AsyncFunction: captcha],
changeGuildBotAvatar: [AsyncFunction: changeGuildBotAvatar],
changeGuildBotBanner: [AsyncFunction: changeGuildBotBanner],
changeGuildBotBio: [AsyncFunction: changeGuildBotBio],
changeGuildBotName: [AsyncFunction: changeGuildBotName],
decrypt: [Function: decrypt],
encrypt: [Function: encrypt],
format: [Function: format],
formatNumber: [Function: formatNumber],
generateMultiplePasswords: [Function: generateMultiplePasswords],
generatePassword: [Function: generatePassword],
getDetailedGuildData: [AsyncFunction: getDetailedGuildData],
getGuildData: [AsyncFunction: getGuildData],
getIP: [AsyncFunction: getIP],
getVibrancyScore: [Function: getVibrancyScore],
iHorizonTimeCalculator: [class iHorizonTimeCalculator],
image64: [AsyncFunction: image64],
isDiscordEmoji: [Function: isDiscordEmoji],
isSimilar: [Function: isSimilar],
isSingleEmoji: [Function: isSingleEmoji],
levenshtein: [Function: levenshtein],
logger: {
log: [Function: log],
warn: [Function: warn],
err: [Function: err],
legacy: [Function: legacy],
returnLog: [Function: returnLog],
},
processBatch: [AsyncFunction: processBatch],
processBatchAsync: [Function: processBatchAsync],
rgbToHex: [Function: rgbToHex],
rgbToHsl: [Function: rgbToHsl],
sanitizing: [Function: sanitizing],
similarity: [Function: similarity],
wait: [Function: wait],
}with this package, you can do:
- Make Discord Oauth2 system easier with HorizonGateway
- Scrape the artist and lyrics of an song
- Use a axios re-make (use NodeJS native fetch)
- Create an easy captcha (with the code)
- Decrypt/Encrypt data with key
- date-and-time re-make
- ms re-make
- formating number to being Human readable
- generatePasswords with crypto module
- ipify re-make
- function to make png screenshot buffer from a html
- function to return base64 from image URL
- function to check if the string is emoji or discord emoji
- custom logger
- sanitizing function to remove broken special caracteres for passing it into URL
- remade of wait module
- Extract vibrant and dark dominant colors from images (supports URL, Buffer, file path)
- Get guild data across Discord.js shards with automatic shard broadcasting
- Calculate Levenshtein distance and similarity scores between strings
- Change Discord bot's guild-specific nickname, avatar, banner, and bio via API
- Process large arrays in batches to avoid blocking the main thread
- Convert between RGB, HSL, and Hex color formats
- Compute color vibrancy scores based on saturation and lightness
