send messages from your PMMP server to Discord
- Download from Poggit.
- Add plugin to your
plugins
folder. - Start and stop your server (so config is created).
- Open
plugins\ChatToDiscord\config.yml
and start customizing.
- add your webhooks
webhooks: ['https://discordapp.com/api/webhooks/123/456789']
. How do I get a webhook? (skip the Github Integration at the end of the article) - change the username
username: 'My Server'
. - change the avatar/icon
avatar: 'http://example.com/myserverslogo.png'
. - change the format
message_format: '{player} said {message}'
.
- Save
plugins\ChatToDiscord\config.yml
. - Restart your server
Config:
Discord:
- Add async so it doesn't lag main thread
- Add multiple webhook support
- Add ability to send messages of events
- on join
- on quit
- on death