MiraWaNeko / DiscordIntegration

Communicate between Minecraft and Discord
https://discordintegration.net
GNU Affero General Public License v3.0
88 stars 42 forks source link

[Suggestion][Feature Request] Automatic Role Assigning & Command-Upon-Link #147

Open thefinaldegree opened 6 years ago

thefinaldegree commented 6 years ago

Brief Description

Feature: Automatic Role Assigning In the config, adding an option to list a role to assign when the user links their MC username to discord.

Feature: Command-Upon-Link In the config, adding an option to run a command on the server when a user completes the linking of their Discord & Minecraft usernames.

Config Example

https://pastebin.com/bgkLqnQp

Mijago commented 6 years ago

For backward compatibility it would be bad to remove the allowLinking entry. We should leave it untouched and better add something like this:

        "allowLinking": true,
        "postLinkingCommands": [
                "do sth with {MCNAME}",
                "do sth different with {DNAME}"
        ],        

This would allow us to add multiple commands that are executed in order of their appearance in the array. This would be quite simple to set up, i guess.