Custom Commands
Args are useful when you have custom commands where you have to enter a input
The command must include | since it uses startswith
example setup
Arguments are saved in a Array so $message[1] would output the first argument
Arguments get splited on whitespace !say hi hello.The first args would be hi the second hello. In this way you can catch the User Input and use it for the custom command

Args Functions


check if the number of args has been provided
$argsCheck[>2;You did not provide 2 args] If the user provided only 1 argument it will return the error and terminate the code


returns the number of args the user provided
Last modified 3mo ago