mark2devel / mark2

Minecraft Multi Server Wrapper Written in Python with Twisted; Pull Requests HIGHLY Encouraged, Collaborators Needed Discord: https://discord.gg/zymJygHNpv
Other
207 stars 44 forks source link

[Feature Request] Discord integration? #110

Closed CyberSecGuy closed 2 years ago

CyberSecGuy commented 5 years ago

Any way to integrate this with Discord webhooks?

Trikolon commented 4 years ago

You could probably add a Discord endpoint which extends HTTPEndpoint similar to what has been done for pushover: https://github.com/gsand/mark2/blob/17cfef3c52c3270ed51aea9e0ec2dc24c8df36f2/mk2/plugins/push.py#L112

Column01 commented 3 years ago

I know this is old, but still a good suggestion.

Do you have any suggestions for what you'd like to see added to a discord webhook?

Column01 commented 3 years ago

I've started working on something for this. Currently, it's only on a branch of my personal fork of mark2. It's being added as a standalone plugin for the ability of future additions Here is an example of it reacting to start/stop events and posting to discord: image

Column01 commented 3 years ago

A pull request has been submitted and should be accepted after it is reviewed 😄 https://github.com/gsand/mark2/pull/133

Column01 commented 2 years ago

I guess I can close this now since I already pulled the request. It's there, but maybe not as integrated as I'd like. When I get some time, mark3 (which is a full re-write of mark2) will probably have a proper discord integration with a chat bridge and events and such.