Skip to content

Self hosted - Create invite? #133

Answered by insertish
damien67 asked this question in Q&A
Discussion options

You must be logged in to vote

If you don't mind toying around with the database, currently you create invites by creating new documents in the invites collection.

A simple way to do this would be:

docker-compose exec database mongosh

Then insert a new invite code:

use revolt
db.invites.insertOne({ _id: "invite code" })

Or create several:

db.invites.insertMany([{ _id: "a" }, { _id: "b" }])

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by insertish
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants