File tree 2 files changed +35
-1
lines changed
2 files changed +35
-1
lines changed Original file line number Diff line number Diff line change 1
1
# discourseBadgeCreator
2
- Python script to create sets of badges in Discourse
2
+ Python script to create sets of badges in Discourse.
3
+
4
+
5
+ License: GPL
6
+
7
+ ## How it Works:
8
+
9
+ Stick these files in a folder, edit discourseBadgeCreator.yml to have
10
+ your API key and your username (from /admin/api).
11
+
12
+ See discourseBadgeCreator.yml for defaults.
13
+
14
+ usage: discourseBadgeCreator [ -h] [ --group GROUP] [ --enabled ENABLED]
15
+ [ --groupID GROUPID] [ --multiple MULTIPLE]
16
+ [ --asTitle ASTITLE] [ --listable LISTABLE]
17
+ [ --revoke REVOKE] [ --showPosts SHOWPOSTS]
18
+ [ --goldLikes GOLDLIKES] [ -v V]
19
+ title icon tag
20
+
21
+ For example,
22
+
23
+ ./discourseBadgeCreator "Cool Badge" fa-anchor sometag
24
+
25
+ creates three badges
26
+
27
+ - Bronze: user posted in CATEGORY (defined in discourseBadgeCreator.yml)
28
+ with tag "sometag".
29
+
30
+ - Silver: user posted sometag in CATEGORY and someone from GROUP
31
+ (defined in config file) liked it.
32
+
33
+ - Gold: user posted sometag in CATEGORY and someone from GROUP
34
+ (defined in config file) liked it, and has at least GOLDLIKES likes
35
+
36
+
You can’t perform that action at this time.
0 commit comments