The easiest way to grant a badge based on activity that occurs outside of Discourse would be to create a custom badge on Discourse through the UI, and then grant the badge through the Discourse API. See How to grant a custom badge through the API for details.
関連トピック
| トピック | 返信 | 表示 | アクティビティ | |
|---|---|---|---|---|
| How do I make my own badge query? | 5 | 6163 | 2016 年 10 月 10 日 | |
| Grant a custom badge through the API | 9 | 7558 | 2023 年 11 月 18 日 | |
| Creating custom badge with custom rules | 10 | 1616 | 2023 年 3 月 14 日 | |
| Badge collection examples | 5 | 2265 | 2015 年 3 月 18 日 | |
| Create badges based on Gamification score | 3 | 758 | 2023 年 1 月 10 日 |