Util¶
/util wins
¶
Lets you calculate a the win ratio for a given number of wins and losses
- Arguments:
wins | number of wins
losses | number of losses
/util random
¶
returns the given string with randomized case
- Arguments:
input | text to randomize
/util abbreviate
¶
returns an abbreviation for the given sentance
- Arguments:
sentance | text to abbreviate
/util def
¶
returns the definition for a given (english) word
Note
definitions provided by dictionaryapi.dev.
- Arguments:
word | word to get a definition for
multi | if more than one definition should be returned
util convert¶
/util convert temperature
¶
convert between celcius, farenheit, and kelvin
Note
these are aproximate results, simplified equations and rounding are used to return more user friendly results.
Warning
when more than one input is provided, only the first input is processed, ideally they would be processed separately or added together, but this command is more of an internal proof of concept than a finished feature.
- Arguments:
celcius | input temperature in celcius
farenheit | input temperature in farenheit
kelvin | input temperature in kelvin
/util convert distance
¶
convert between meters, inches, feet, yards, miles, and nautical miles
Note
these are aproximate results, simplified equations and rounding are used to return more user friendly results.
Warning
when more than one input is provided, only the first input is processed, ideally they would be processed separately or added together, but this command is more of an internal proof of concept than a finished feature.
- Arguments:
meters | input length in meters
inches | input length in inches
feet | input length in feet
yards | input length in yards
miles | input length in miles
nautical-miles | input length in nautical miles
util math¶
/util math expression
¶
returns the result of an arbitrary expression
Note
no built-in’s are available.
all objects from
math
are exposed directly. (e.g.pow
notmath.pow
)
- Arguments:
expression | the expression to evaluate
/util math add
¶
returns the sum of a and b
- Arguments:
a | first number to add
b | second number to add
/util math sub
¶
subtracts b from a
- Arguments:
a | number to subtract from
b | number to be subtracted
/util math mul
¶
returns the product of a and b
- Arguments:
a | first number to multiply
b | second number to multiply
/util math div
¶
return the quotient of a / b
- Arguments:
a | number to be divided
b | number to divide by
/util math modulo
¶
return the modulo (remainder) of a / b
- Arguments:
a | number to be divided
b | number to divide by
/util math pow
¶
return a to the power of b
- Arguments:
a | number to raise
b | exponent to raise to