New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
replace f*cks with hugs #308
Conversation
I thought it would be funny to check every incoming message for the content |
Note that the username/avatar cannot be set as JDA5 currently doesn't have webhook support. |
you might want to take a look at this: https://github.com/MinnDevelopment/discord-webhooks |
It would be great if you (or someone else) could test this functionality tho |
I tested it with normal text, images, images devlared as spoilers and in a thread. However, i still think someone else should test it in isolation. Note that obtaining non-image attachments currently fail due to a bug (fixed but the fix is not yet published) in JDA. See discord-jda/JDA#2139 for details. |
I'll test it a bit |
Okay, so something that is kind of expected but I would still like to mention, is that voice-text channels are not supported by JDA yet (discord-jda/JDA#2072), so it doesn't work in these obviously Other than that I haven't found anything that didn't work as expected, except for non-image attachments which you already mentioned |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not tested
Not sure if we still want someone else to test this though |
would be cool if you cloud extract this webhook stuff into a separate method/class tho |
(for things like the messagelink listener) |
Oh, something I just noticed, if I ping someone in my initial message the ping will (as it shouldn't) not go through to the message the webhook sends. This might lead to confusion as someone might be looking for the message he was pinged in, which he can't find that easily since it doesn't have that orange mark, so we might want to disable this functionality for messages that include any pings |
Yes but if that feature would accept pings, it should be capped to e.g. a maximum of three mentions per message. |
I wasn't suggesting to let pings through, that would lead to more confusion as people would he shown two pings, instead it could just not replace anything in messages that include pings to cause no confusion about pings |
Done
Done |
Replacing fucks with hugs would cause incompatibilities with the suggestion listener. However, fucks are still replaced with hugs in suggestion threads.
So what's up with this? |
The functionality is implemented and has been tested against the old version of the bot. |
yay |
this is a huge step for the java community |
https://lkml.org/lkml/2018/12/1/105