Skip to content

Command Optional Parameter #586

Answered by Lukasss93
Z3d0X asked this question in Q&A
Sep 30, 2023 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

Try this:

$bot->onCommand('nickname {nickname}', ...);
$bot->onCommand('nickname', ...);

Or:

$bot->onCommand('nickname ?(.*)?', ...);

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Z3d0X
Comment options

@Z3d0X
Comment options

Answer selected by Z3d0X
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants