Definition: - Discord: a platform where users can chat and communicate with each other - Chat bridge: to make the chat same for said discord server's channel to the server's chat and vice versa TLDR: a plugin that can synchronize server chat and discord channel chat together By that i mean a plugin that can synchronize the chats, not in a one way manner(aka mirror) which is what most self claimed "discord bridge" plugin does(using webhook hacks), they all lack the capability to send messages on discord back to server basically making it so you can say something in server and it would show up on discord channel and vice versa technical preferences: no messy setup, preferably the bot will run in a thread of the server eliminating the need of setting up external middleman bots on VPS/another host preferably dont use webhooks AFAIK they have ratelimit and i dont think they are meant to handle a rapid chat as far as how possible it is, basically boils down to weather if it's possible to run some sort of discord api library on a thread of pmmp/main and the knowledge of using said lib for configuration, able to change format would be nice for what to be forwarder, mostly just chat message, maybe death messages I hope this include all you need to know about it
I actually have never tried to forward the Discord chat to the server. I have about 2 Discord bots in PHP but as DiscordPHP is dead I had moved over to DoscordJS. Anyways I might try to implement something like this... No clue I have never tried.
I've started to rewrite the DiscordPHP project so it's less buggy and only supports discords gateway API. I'll write up a plugin utilising the library once it's actually usable, you can keep track of progress here.
That is really good. I have also heard that someone is bringing up the project back as well. It would be good if its back as I was more used to DiscordPHP than the DiscordJS version. Also many people are forking the project the next second its deleted lol.
the first annoyance of these kind of these libraries is that they uses callables as event functions like the ones with 0 hinttyping which still bugs me to use it
I have a working setup, I just run a jar similar to the spigot discord plugins and then I made a plugin that pulls the information sent/received from it.
This should be done soon. I finally got around to continuing my rewrite of DiscordPHP and the basic functionality is there, I just need to finish up on all the fancy stuff. After I get the library working properly I'll make a viron out of it so that anyone can easily add it to their own PocketMine plugins.
This plugin already exists? https://poggit.pmmp.io/p/ChatToDiscord/1.1.1 and on gh there's a version for alpha9&8 https://github.com/eDroiid/ChatToDiscord/tree/master
For anyone that is still interested in this request, I finally got around to getting the plugin in a usable state: https://github.com/JackNoordhuis/DiscordRelay-PocketMine. I'll finish up on some of the other requested features soon (like modifying the format and some event broadcasting) and there are some more features that weren't requested such as console relay and ability to display messages as embeds on discord.