-
$bot->onCommand('nickname {nickname}', ...); How can i make a parameter optional? |
Beta Was this translation helpful? Give feedback.
Answered by
Lukasss93
Sep 30, 2023
Replies: 1 comment 2 replies
-
Try this: $bot->onCommand('nickname {nickname}', ...);
$bot->onCommand('nickname', ...); Or: $bot->onCommand('nickname ?(.*)?', ...); |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
Z3d0X
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Try this:
Or: