A simple and basic random string generator with options to control the type and amount of characters in output.
- By default it will output 15 characters
- You can increase that by changing
{{ $default := 15 }}
- You can output a maximum of 60 characters
- You can increase the maximum 60 limit by changing
{{ $max := 60 }}
alpha
: Alphabets, lower and upper case[a-zA-Z]
lower
: Alphabets, lower case[a-z]
upper
: Alphabets, upper case[A-Z]
num
: Numerical[0-9]
sym
: Symbols, by default~!@#$%&*
mix
: All the previous types combined (Default)
The order of arguments is fluid and multiple character types can be used. Meaning, all the following scenarios will work:
-random
-random 30
-random num
-random 40 upper
-random lower 40
-random num lower
-random sym num 30
-random 25 upper sym
The arguments are processed, for example:
- If
alpha
andupper
are used, onlyalpha
is processed since it hasupper
already. - If
mix
is used with other types (ie:mix num
), onlymix
will be processed since it has all types already.
This is to ensure the generated output does not favor a specific type based on repeated strings.
- Login to YAGPDB dashboard. (https://yagpdb.xyz/manage)
- Navigate: Custom Commands -> Commands -> Create a new custom command.
- Trigger type: Command
- Trigger:
random
- Copy and paste code in the response field.
- Save.