Generate hidden_communities #42

Merged
UlrikHD merged 13 commits from generate_hidden into main 2026-06-04 09:20:23 +00:00
Member

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. Adminbot changes are ready, see: https://git.programming.dev/CameronDev/disco_mod/pulls/20
CameronDev changed title from 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. 2026-05-20 11:56:05 +00:00
CameronDev changed title from DRAFT: This add some scripts and a JSON file to make generating the hidden_communities.md file programattically. to DRAFT: Generate hidden_communities 2026-05-20 11:56:58 +00:00
CameronDev force-pushed generate_hidden from 5ddd49c94e to 8296abc6a7 2026-05-21 09:45:04 +00:00 Compare
CameronDev force-pushed generate_hidden from 8ba83583e7 to 2000b0e366 2026-05-26 00:25:31 +00:00 Compare
CameronDev changed title from DRAFT: Generate hidden_communities to Generate hidden_communities 2026-05-26 00:25:44 +00:00
@ -0,0 +5,4 @@
with open("hidden-communities.json", "r") as f:
categories = json.load(f)
category = categories.get(category_name, categories.get("other"))
Member

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 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.
Author
Member

The bot side should now enforce the category, but i havent deployed it yet.

CameronDev/disco_mod@!20 (commit bb306fb11e)

The bot side should now enforce the category, but i havent deployed it yet. https://git.programming.dev/CameronDev/disco_mod/pulls/20/commits/bb306fb11e529bb132961237613868020a1dbf41
UlrikHD marked this conversation as resolved
@ -0,0 +1,99 @@
import json
Member

No type hints :(((((((((((((((((((

No type hints :(((((((((((((((((((
Author
Member

Do you want a rust rewrite :)

Do you want a rust rewrite :)
@ -0,0 +43,4 @@
if category_name == "nsfw":
print(f"### NSFW\n")
if category_name == "bots":
Member

elif

elif
Author
Member

if only python had switches...

if only python had switches... - [ ] 21380322cc39d9359018d2219c0e367a12c4ed70
Member

https://www.w3schools.com/python/ref_keyword_case.asp Get up with the times old man 😎

https://www.w3schools.com/python/ref_keyword_case.asp Get up with the times old man 😎
CameronDev force-pushed generate_hidden from 8d394cc728 to f8d1bb6392 2026-05-31 12:32:42 +00:00 Compare
UlrikHD approved these changes 2026-06-04 09:19:40 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Programming.Dev/p.d-legal!42
No description provided.