Command arguments should accept symbols #6

Closed
opened 2015-07-06 21:17:26 +00:00 by amovah · 0 comments
amovah commented 2015-07-06 21:17:26 +00:00 (Migrated from github.com)

I've built a bot, and I use a command with a optional arguments. like below

bot.command('search <name> [+count]', message => {
  console.log(message.argv);
});

Then I sent to my bot this : /search bro-yo +3 and after that I gave count argument as undefined.

I think the problem is your regexp. because when I sent to my bot /search bro +3, everything was OK.

I've built a bot, and I use a command with a optional arguments. like below ``` javascript bot.command('search <name> [+count]', message => { console.log(message.argv); }); ``` Then I sent to my bot this : `/search bro-yo +3` and after that I gave count argument as undefined. I think the problem is your regexp. because when I sent to my bot `/search bro +3`, everything was OK.
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: thereadme/node-telegram-api#6
No description provided.