Discord Integration Forge

Discord Integration Forge

666k Downloads

[Suggestion] Webhook/Bot msg ability

X-Niter opened this issue ยท 5 comments

commented

Platform

  • Forge
  • Spigot

What you want to be added?

  • Any chance to be able to have the mod/bot be able to listen for webhook/bot messages and send those to the Minecraft server as well?
    It would take the name | or nickname and then the message and sense that to the Minecraft server.
    The optional thing that can be added to the config as well with defaulting to false.
commented

Most bots prevent other bots and webhooks from interacting with them.
This bot, however, simply ignores all webhook messages (it would send mc messages in mc again) and messages from itself.
(!ev.isWebhookMessage() && !ev.getAuthor().getId().equals(jda.getSelfUser().getId()))
Meaning that normal bot messages will still show up ingame. Only bug currently still exisiting is embeds and attachments not showing up.

About commands, 2.3.0+ use discord's slash commands now so bots cannot run commands with it now, unless bots can run them.

commented

I have realized that I am saying this and just noticed that it looks as that you have dropped 1.12 support..

commented

Adding an config option to allow bots might still be relevant for 1.16

About Webhooks: Allowing webhooks from discord to minecraft would send minecraft messages back to minecraft again when webhook mode is enabled

commented

But as mod knows what it sent it can just ignore that message perhaps. Its working fine in https://github.com/DiscordSRV/DiscordSRV but that does not support forge ;(

commented

Any chance of having this for 1.16.5? I would really like players to be able to interact with my Discord bots on a minecraft server.
And for discord bots to execute server commands through this mod.