โญ Infractions and managed (temporary) punishments - to moderate your server
โญ Userscan - quickly spot relations between users with a included visualization
โญ Quicksearch - to reliably search for any infractions or notes a user has
โญ Automoderation - to give trolls no chance
โญ Ban appeals and webhook notifications - to moderate your server transparently
โญ A website and a discord bot - to use MASZ
โญ Full API support - for custom scripts
Visit https://demomasz.zaanposni.com for a demo.
Furthermore, join the demo guild https://discord.gg/7ubU6aWX9c to get the required permissions.
More previews and examples can be found at https://github.com/zaanposni/discord-masz/tree/master/docs
Join this server to receive update information or get support: https://discord.gg/5zjpzw6h3S
You can host your own instance of MASZ, see below for instructions.
If you have any questions, feel free to contact me.
- Discord server
- Discord
zaanposni#9295
- Create a discord application at https://discord.com/developers/applications
- Set redirect urls on your discord application as defined.
- Enable Server Members Intent in your bot settings.
- Execute the
setup.py
script to configure your app andstart.sh
(orstart.ps1
on windows) to start it. - App will be hosted on
127.0.0.1:5565
, if you are hosting the app on a domain, redirect your reverse proxy to this local port!
- docker & docker-compose (
docker-compose -v
> 1.25) - python3 for setup
If you want to deploy on a domain:
- a (sub)domain to host the application on
- a reverse proxy on your host
Create your own OAuth application here.
Also set the redirect paths in the tab OAuth2
. Be sure to set the following (choose localhost or domain depending on your deployment):
Enable Server Members Intent in your bot settings.
- Download this repository
git clone https://github.com/zaanposni/discord-masz
(zip link) - Use
python3 setup.py
(python setup.py
on windows) to setup the configuration. - Start the application with
./start.sh
(start.ps1
on windows). - App will be hosted on
127.0.0.1:5565
, if you are hosting the app on a domain, redirect your reverse proxy to this local port!
- You can visit your application at
yourdomain.com
(or127.0.0.1:5565
). You will see a login screen that will ask you to authenticate yourself using Discord OAuth2. - After authorizing your service to use your Discord account you will see your profile picture in the toolbar.
- If you are logged in as a siteadmin, you can use the "register guild" (+) button to register your guilds and to get started.
- Based on wanted features and functionalities you might have to grant your bot advanced permissions, read below for more info.
- Checkout the bot commands using the
help
command. Default prefix is $.
If you want banned users to see their cases, grant your bot the ban people
permission.
This way they can see the reason for their ban and comment or send an unban request.
Furthermore, make sure the bot is high enough in the role hierarchy to ban people below him.
If you want the application to execute punishments like mutes and bans and manage them automatically (like unban after defined time on tempban), grant your bot the following permissions based on your needs:
Manage roles - for muted role
Kick people
Ban people
Furthermore, make sure the bot is high enough in the role hierarchy to punish people below him.
To avoid any issue for message deletion or read permissions it is recommended to grant your bot a very high and strong or even the administrator
role.
Allows MASZ to track the invites new members are using. Grant your bot the manage guild
permission to use this feature.
You can enable strict permissions in your guildconfig. This mode will check your moderators role permissions before creating a modcase. A moderator can only create a kick or ban modcase if he has the respective permission in discord. If you do not enable this mode, moderators can create any modcase.
To install a new update of MASZ just use:
git pull
./start.sh
There are backup example scripts in the scripts
directory to backup uploaded files and the database.
As a siteadmin you can create a token to authenticate yourself while making API requests.
You can also use my python library to integrate the MASZ API into your project.
- Using the
setup.py
script. Choose "local" deployment for best development experience.
If you are using a local deployed backend you have to define https://127.0.0.1:port/
and https://127.0.0.1:port/signin-discord
as valid redirect in your Discord application settings.
If you want to develop on the angular frontend, it would be best if you deploy the backend via ./start.sh
and enable cors in the Startup.cs
then use the config.ts
to redirect all requests to 127.0.0.1:5565
.
Contributions are welcome.
If you are new to open source, checkout this tutorial.
Feel free to get in touch with me via our support server https://discord.gg/5zjpzw6h3S or via friend request on discord: zaanposni#9295.