Util

/util wins

Lets you calculate a the win ratio for a given number of wins and losses

Arguments:
  1. wins | number of wins

  2. losses | number of losses

/util random

returns the given string with randomized case

Arguments:
  1. input | text to randomize

/util abbreviate

returns an abbreviation for the given sentance

Arguments:
  1. sentance | text to abbreviate

/util def

returns the definition for a given (english) word

Note

definitions provided by dictionaryapi.dev.

Arguments:
  1. word | word to get a definition for

  2. 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:
  1. celcius | input temperature in celcius

  2. farenheit | input temperature in farenheit

  3. 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:
  1. meters | input length in meters

  2. inches | input length in inches

  3. feet | input length in feet

  4. yards | input length in yards

  5. miles | input length in miles

  6. 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 not math.pow)

Arguments:
  1. expression | the expression to evaluate

/util math add

returns the sum of a and b

Arguments:
  1. a | first number to add

  2. b | second number to add

/util math sub

subtracts b from a

Arguments:
  1. a | number to subtract from

  2. b | number to be subtracted

/util math mul

returns the product of a and b

Arguments:
  1. a | first number to multiply

  2. b | second number to multiply

/util math div

return the quotient of a / b

Arguments:
  1. a | number to be divided

  2. b | number to divide by

/util math modulo

return the modulo (remainder) of a / b

Arguments:
  1. a | number to be divided

  2. b | number to divide by

/util math pow

return a to the power of b

Arguments:
  1. a | number to raise

  2. b | exponent to raise to