Moderation
Last updated
Was this helpful?
Last updated
Was this helpful?
The admin page gives you access to an example moderation system. Admins can access text message and voice transcription history from worlds started from your organisation.
Admins can also mute and ban players from this page. Messages are checked against a modifiable list of banned profanity (this is stored in Live Config), and offending messages are highlighted in red.
To use the admin page you must set up the following:
Create an account.
Create a new database via the Redis Cloud console.
For the purpose of this example it doesn't matter which cloud vendor or region you choose.
Go to the General section and note down these values:
REDIS_HOST
: This will be listed as "Public endpoint" and will look like: redis-13619.c338.eu-west-2-1.ec2.redns.redis-cloud.com
It will have a colon and another number at the end of it. Remove that from the vale that you note down.
REDIS_PORT
: This is a subset of Redis Host. It's the number after redis-
(13619
in the example above).
Go to the Security section and note down these values:
REDIS_USERNAME
- This should be default
REDIS_PASSWORD
- This is listed as "default user password".
For moderation to function your Unreal project needs to know where to send messages to. Let's tell the Unreal project about our database.
In your IDE, open Config/LiveConfig/Overrides/game.override.json
Replace its contents with the following:
Once you're happy that this works locally, replace ModerationSiteUrl
with [your-vercel-app-url]/api/
This new upload is necessary to update the Live Config that the world will use.
Deploy your world.
You should now see any messages that have been sent come through to your Vercel hosted Moderator app! Messages that are potentially dangerous will be flagged in red.
For this example we will use , a free database that allows you to store up to 30MB of data in their Key Value store.
Go to and select the free database that you just created. This will take you to the database's Configuration tab.
Follow the steps in to declare the following values that you just noted down as environment variables in Vercel.
Once set up, all messages sent via your game client will be stored in your Redis database. The template app allows you to configure various settings (such as the max messages to store per world, the time to live for each key stored in Redis, and the key prefix for message values). You can configure these in your app's file.
In this snippet ModerationSiteUrl
is set as localhost. This means that you can test it against a locally deployed version of .
Follow these steps to deploy a world: .
Your new world will have a new WORLD_ID
. You need to update the WORLD_ID
of your Vercel app, then the app for the variable change to take effect.