Need a lottery Addon.

Such as the repo below:

Feature Introduction

  • The initiator can start a lottery based on a template in a specified category/tag.

  • Lottery posts must specify: lottery name, prizes, number of winners, drawing time, and a brief description.

  • Users participate by replying as required, no button clicking needed.

  • Automatic drawing at the specified time, excluding the initiator and duplicate users.

  • Automatically announce the winners in the topic.

  • Automatically add the tag “Lottery Ended” to the lottery topic.

  • Automatically add the tag “抽奖结束” (Lottery Ended).

  • Winners will be marked as winners in the winning post.

  • A system message will be automatically sent to the winners as notification.

  • After automatic drawing, the main post is automatically locked, preventing editing and replies (0710).

  • When posting, add 【抽奖】...【/抽奖】 (using square brackets) tags, and automatically check input content correctness, with front-end beautification (0711 requires cooperation with validation and beautification components).

  • New: Support setting a “Minimum Points” threshold for a single lottery (points come from the discourse-gamification plugin). If not set or set to 0, it means no restriction; users below the threshold will be automatically ignored, and a notice will be displayed on the topic page.

Usage Instructions

  1. The administrator sets the tags allowed for lotteries (e.g., Lottery Activity).

  2. Posting format example:


🎉 Floor-grabbing Activity: 2025 Summer Lottery

          

          
Prizes: One pair of Bluetooth headphones

          
Number of Winners: 2

          
Drawing Time: 2025-07-10 20:00

          
Minimum Points: 10

          
Brief Description: One entry per person, participation only via reply (one sentence)

        

        
Welcome to participate, good luck to everyone! Floor-grabbing activity instructions and posting method

      



Other activity descriptions and introductions.

  1. Users only need to reply to participate.

  2. The plugin automatically draws the lottery and announces the results.

1 Like

AFAIK there’s no Plugin topic for lottery plugins. @joo might be still developing a plugin, but I’m not sure if it’s finished?

If you have a budget, you might want to consider opening a Marketplace topic.

hello @祁同伟

This is a too low quality topic. We do expect feature topics to be a little more fleshed out than a simple link. A description, mocks, use case, etc.

Can you update your post please.

5 Likes

I just saw a similar situation in another community, you can take a look (I haven’t actually used it)

1 Like

Thank you very much for sharing, I will try to see if I can use it in my community!

I tested it today, and it really works, thank you!