Skip to content

Color Customization

Aoi.handler provides user variety of colors to customize in their console, You can check out below on how to do it

We customize the colors of each loader by providing the data as a object as you can see below

Command Loader

const handler = new Handler(
{
client: client,
readyLog: true
},{
commandLoader: {
header: "lime",
title: "skyBlue",
file: "darkOrchid",
directory: "deepPink",
type: "red",
commandName: "orangeRed",
reason: "darkTurquoise",
status: "pink"
}
},
__dirname)

In this above code the different property changes the color of respective component of the loader table in console Command Loader If you wonder there are more options to customize than they appear in the image, well the option also includes for error loader when any error happens and everything is pretty much the same.

Variable Loader

const handler = new Handler(
{
client: client,
readyLog: true
},{
variableLoader: {
header: "chocolate",
title: "burlyWood",
table: "chartreuse",
type: {
object: "navy",
string: "khaki",
boolean: "blue",
number: "red",
},
variableName: "lightCoral"
}
},
__dirname)

Variable Loader

Custom Function Loader

const handler = new Handler(
{
client: client,
readyLog: true
},{
functionLoader: {
header: "honeydew",
title: "darkSeaGreen",
functionName: "salmon",
type: {
djs: "maroon",
aoijs: "rosyBrown"
},
file: "peru",
directory: "olive",
reason: "red"
}
},
__dirname)

Custom Function Loader

Status Loader

const handler = new Handler(
{
client: client,
readyLog: true
},{
statusLoader: {
header: 'darkGray',
title: 'tan',
name: 'wheat',
type: 'olive',
status: 'cornSilk',
time: 'crimson',
reason: 'red'
}
},
__dirname)

Status Loader

Colors List


See list of available colorsantiqueWhite
aqua
aquamarine
azure
beige
bisque
black
blanchedAlmond
blue
blueViolet
brown
burlyWood
cadetBlue
chartreuse
chocolate
coral
cornSilk
cornflowerBlue
crimson
cyan
darkBlue
darkCyan
darkGoldenRod
darkGray
darkGreen
darkKhaki
darkMagenta
darkOliveGreen
darkOrange
darkOrchid
darkSalmon
darkSeaGreen
darkSlateBlue
darkSlateGray
darkTurquoise
deepPink
deepSkyBlue
dimGray
dodgerBlue
fireBrick
floralWhite
forestGreen
fuchsia
gainsboro
ghostWhite
gold
goldenRod
gray
green
honeydew
hotPink
indianRed
indigo
ivory
khaki
lavender
lemonChiffon
lightCoral
lightGoldenrodYellow
lightGreen
lightGray
lightPink
lightPurple
lightSalmon
lightSeaGreen
lightYellow
lime
limeGreen
linen
magenta
maroon
mediumBlue
mediumOrchid
mediumSlateBlue
mediumSeaGreen
mediumSpringGreen
mediumTurquoise
mediumVioletRed
midnightBlue
mintCrea
mintGreen
mistyRose
moccasin
navajowhite
navy
oldLace
olive
orange
orangeRed
paleGold
paleGoldenRod
paleGreen
papayaWhip
peachPuff
peru
periwinkle
pink
powderBlue
purple
red
rosyBrown
royalBlue
saddleBrown
salmon
sandyBrown
santiquewhite
seaGreen
seaShell
sienna
silver
skyBlue
slateBlue
snow
softBlue
springGreen
tan
teal
tealBlue
tealishBlue
thistle
tomato
turquoise
violet
wheat
wheat2
white
yellow
yellowGreen