Discobot 멘션과 공백 제거

For a long while now our team has gotten used to the discobot not replying at times and the solution appears to be to insist. After doing some careful look, it seems the issue is simply the use of extra spaces between the @discobot mention and the command. With a single space, all works. With 2+ spaces, it either fails or is ignored. It causes some confusion at times, but I’m not sure if it’s easy to address.

2개의 좋아요

This should work:

@discobot roll 2d8

1개의 좋아요

:game_die: 3, 7

1개의 좋아요

But not this

@discobot roll 2d12

2개의 좋아요

Hi! To find out what I can do, say @discobot display help.

1개의 좋아요

Interesting bug report! Adding a pr-welcome in case anyone wants to make the regex less space sensitive.

3개의 좋아요

https://github.com/discourse/discourse/pull/17738

3개의 좋아요

Thank you for the fix @mayfield! :+1:

This topic was automatically closed after 2 days. New replies are no longer allowed.