Skip to content

DarkRooms (Anonymous Forum)

DarkRooms (Anonymous Forum)

Reddit-style anonymous forum with rooms, posts, voting, and comments. Rooms can be password-protected. Posts support anonymous authorship and upvote/downvote scoring.

Database Tables

TablePurpose
phone_darkrooms_roomsRooms -- slug, name, description, icon, password_hash, created_by
phone_darkrooms_membersRoom membership -- room_id, identifier, role (member/moderator)
phone_darkrooms_postsPosts -- room_id, author_identifier, author_name, title, content, media_url, is_anonymous, score, comments_count
phone_darkrooms_votesVote records -- post_id, identifier, value (+1/-1)
phone_darkrooms_commentsComments -- post_id, author_identifier, author_name, content, media_url, is_anonymous

Server Callbacks

CallbackPurpose
gcphone:darkrooms:getRoomsLists all rooms with member/post counts and membership status
gcphone:darkrooms:createRoomCreates a new room (optionally password-protected)
gcphone:darkrooms:joinRoomJoins a room (validates password if required)
gcphone:darkrooms:getPostsGets posts for a room (sort by new or top, pagination)
gcphone:darkrooms:createPostCreates a post in a room (auto-joins if needed)
gcphone:darkrooms:votePostUpvotes or downvotes a post (toggle on repeat)
gcphone:darkrooms:getCommentsGets comments for a post
gcphone:darkrooms:createCommentCreates a comment on a post

Config Options

lua
Config.Features.DarkRooms = true

Default Rooms

Created automatically on startup: General, Mercado, Vehiculos, Policia.

Exports

None.

Released under GPL-3.0 License