Generate hidden_communities #42
No reviewers
Labels
No labels
🍄 Good First Issue
Kind
🍊 Bug
Kind
🍉 Documentation
Kind
🥪 Enhancement
Kind
🍖 Feature
Kind
🍬 Security
Kind
🍕 Testing
Priority
🌻 High
Priority
🌱 Low
Priority
🌺 Mid
Priority
🌹 Urgent
Reviewed
✨ Confirmed
Reviewed
🔎 Duplicate
Reviewed
❌ Invalid
Reviewed
⛔ Won't Fix
Size
🐋 Giant
Size
🐃 Large
Size
🦌 Medium
Size
🐇 Small
Size
🦔 Tiny
Status
🦝 Abandoned
Status
🐫 Blocked
Status
🌿 Need More Info
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Programming.Dev/p.d-legal!42
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "generate_hidden"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This add some scripts and a JSON file to make generating the hidden_communities.md file programattically.
Adminbot changes are ready, see: CameronDev/disco_mod#20
This add some scripts and a JSON file to make generating the hidden_communities.md file programattically.to DRAFT: This add some scripts and a JSON file to make generating the hidden_communities.md file programattically.DRAFT: This add some scripts and a JSON file to make generating the hidden_communities.md file programattically.to DRAFT: Generate hidden_communities5ddd49c94eto8296abc6a78ba83583e7to2000b0e366DRAFT: Generate hidden_communitiesto Generate hidden_communities@ -0,0 +5,4 @@with open("hidden-communities.json", "r") as f:categories = json.load(f)category = categories.get(category_name, categories.get("other"))The verification can probably be done in rust, but I'd suggest the bot forces the community to added to a pre-defined category and reject the hide request if not.
The bot side should now enforce the category, but i havent deployed it yet.
CameronDev/disco_mod@!20 (commit
bb306fb11e)@ -0,0 +1,99 @@import jsonNo type hints :(((((((((((((((((((
Do you want a rust rewrite :)
@ -0,0 +43,4 @@if category_name == "nsfw":print(f"### NSFW\n")if category_name == "bots":elif
if only python had switches...
21380322cchttps://www.w3schools.com/python/ref_keyword_case.asp Get up with the times old man 😎
8d394cc728tof8d1bb6392