Tutorials_for_BDFD

argsCheck en

Dec 5th, 2022
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. So, the function is used, the command is executed only if the user's message contains the number of arguments (words)
  2. This is useful when doing a : ban,kick or clear command.
  3.  
  4. Use : $argsCheck[count;error message]
  5.  
  6. The "count" is the number of arguments that must be written for the command to be executed.
  7. ⚠ Attention if >2 is specified, 2 arguments must be specified with a space between them
  8.  
  9. Example : !ban
  10.  
  11. $argsCheck[>1;Please @ mention a user]
  12. $argsCheck[>2;Please provide reason for ban]
Advertisement
Add Comment
Please, Sign In to add comment