-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add more info to the readme with an example raffle post
- Loading branch information
Showing
1 changed file
with
26 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,26 @@ | ||
# raffle | ||
# VHS Discourse RaffleBot | ||
|
||
This bot takes a post with a number of polls, and runs randomness on it to generate a list of raffle winners, then posts that list in a reply to the original post. | ||
|
||
On Discourse, post a poll like so: | ||
|
||
``` | ||
[poll type=multiple results=always min=1 max=3 public=true chartType=bar close=2025-01-04T23:00:00.000Z] | ||
* 1 x Raffle Item One | ||
* 2 x Raffle itme two (there are two of this thing available) | ||
* 10 x Widgets | ||
[/poll] | ||
[poll type=multiple results=always min=1 max=2 public=true chartType=bar close=2025-01-04T23:00:00.000Z] | ||
* 5 x Raffle section two item one | ||
* 1 x Raffle section two item two | ||
[/poll] | ||
``` | ||
|
||
To run the RaffleBot as a github action, you need: | ||
|
||
1. permission to run github actions on this repo | ||
2. the raffle post's topicID - e.g. talk.vanhack.ca/t/raffle-welcome-to-2021/11292/18 the ID is 11292 | ||
3. an action `print-nice`, `dump-raw-object`, `dump-base64-picked-object`, `post-data-to-topic`, `post-winners-to-topic`, `print-raw-data-post`, or `print-raw-winners-post` | ||
|
||
To run the rafflebot locally, you need a everything above, plus a discourse api key. |