Automatically manage access to RealDeviceMap and PMSF maps based on members with Discord role(s) in Discord guild(s).
From the installation script: (Just need to fill out config and run)
wget https://raw.githubusercontent.com/versx/RoleBot/netcore/install.sh && chmod +x install.sh && ./install.sh && rm install.sh
Manually:
- RoleBot
wget https://dotnetwebsite.azurewebsites.net/download/dotnet-core/scripts/v1/dotnet-install.sh && chmod +x dotnet-install.sh && ./dotnet-install.sh && rm dotnet-install.sh
git clone https://github.com/versx/RoleBot -b netcore
cd RoleBot
~/.dotnet/dotnet build
cp config.example.json bin/Debug/netcoreapp2.1/config.json
cd bin/Debug/netcoreapp2.1
nano config.json
/vi config.json
(Fill out config)~/.dotnet/dotnet RoleBot.dll
git pull
~/.dotnet/dotnet build
cd bin/Debug/netcoreapp2.1
~/.dotnet/dotnet RoleBot.dll
If using PMSF: Replace discord-callback.php
with the discord-callback.php
file in this repository and change the RDM group_name
column on line 35
to the group name in the config.json
file.
This modified discord callback checks RDM user
table if the user has their Discord account linked to their RDM map account and has the desired group name.