-
Notifications
You must be signed in to change notification settings - Fork 288
Configurable formatting for irc action /me messages sent to Discord #277
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
Conversation
|
Hi there! First of all, thanks for this. A few comments:
Let me know if you need any help with this, or if you'd prefer I make the changes myself. |
Sure it makes little sense, but the whole code around sending those messages made very little sense, hence I just placed it at the first place where i could, without changing too much. ...this was done this way to not have to rename it everywhere, as I'm using
lol
And here we will disagree. IRC (any good IRC clien?) has ...so anyway, that's my reason. I'll change it because there is something I could agree with - backwards compatibility and not breaking it for whoever is already using it like that... |
The names of the methods correspond to what they do, on master, whereas your change causes a method with a weird name to be used for both. I don't think it's particularly controversial to suggest you change it?
I'm not the one who set up the linting, and I don't feel I have 'sufficient authority' to suggest it change, but the current linting wants you to reduce the line length and if you don't it'll break Travis builds. This prevents us from checking, online, whether your code breaks tests.
My IRC client displays it as: (The star represents that it's not a regular message sent by a user, as I receive similar commands when I join the server notifying me of, e.g., the message of the day.) Discord has If you want to change it, I'd suggest changing it to |
|
In response to your edited message and the updated commit: So I'd still prefer you alter the This currently still breaks tests, despite the change, because the test for "Bot Events should send actions to discord" is checking the parameters |
|
@Throne3d I've commited the changes, but I'm afraid that I don't really understand what's going on in the tests file... |
|
That's okay! Thanks for the contribution; I'll get to modifying the tests myself. |
|
@Throne3d Either I'm looking into wrong file or I don't know why I can't find what you're mentioning... >_> |
|
Okay found it :D |
|
You forgot to remove the underscores from I guess I'll add the test for the custom formatting myself? Or are you planning on getting to that after? |
I'm not entirely sure what does it entail... Sure we use the thing to format it and stuff, but looking at the rest of the tests, they don't seem to handle custom formatting for standard messages either(?) https://github.com/reactiflux/discord-irc/blob/master/test/bot.test.js#L86 |
|
Sure they do, but later on:
(The link in the above quote from earlier points to: https://github.com/RheaAyase/discord-irc/blob/d0ebb9ed5e7631350b02dfbe1d96389d2586628f/test/bot.test.js#L665. A test should be added here for the custom formatting of an action, when It doesn't have a dedicated test that (Two tests in total – one near the beginning to ensure |
|
Closing this due to inactivity. |
|
@ekmartin my PR is complete. Tests do not have to be a part of a feature. Create an issue for the missing tests, accept the feature would be the correct course of action. Also don't expect busy professionals to create stuff for you as you whistle. I have a queue of a few months to get around to things. |
|
I find myself confused. @RheaAyase, your message comes across as quite… annoyed? If the project only wants to accept new features that have tests associated (as otherwise, it might increase the effort to maintain the feature in the future), isn't that a decision for the project to make? (I would also point out that you don't seem to have provided tests, and you seem to expect the changes to be merged without them and then for us … potentially busy professionals … to create tests, for you, to make sure it works…?) |
|
@Throne3d Yes annoyed as just closing my work off and throwing it to trash is quite rude. I don't seem to have provided tests but I have said that I will, when I have the time to - not before November. Simply put, it's rude to close perfectly good PR without any discussion. |
|
@RheaAyase I'm sure we'd be happy to reopen if someone provides tests? I wouldn't have considered this 'without any discussion', though – tests were requested and then there was inactivity and so it was closed. Closing the PR isn't an irreversible process, it just – to me – suggests it's not ongoingly worked on. |
|
Did you ask if there is nobody working on it? As I said, I'm busy, that doesn't mean that I dropped it... |
|
I feel like you misread my point ("ongoingly" worked on) and I'm not sure I'm going to get anywhere with this. |
|
I see an open PR as an incentive and a reminder to work on it. Now that it's closed, well, it got dumped in priority for me. |
|
I don't really think you added that comment in an attempt to be helpful. I think you are attempting to make me feel guilty or sad about the fact you are less likely to contribute. I would prefer you not do that. If you want to add code to this, feel free to, at some point that it's convenient to you. If you do not, then someone else may pick it up; I, in fact, may pick it up, at some time that's less inconvenient for me. You did not respond to the pull request in over a month and a half, after having feedback, and nobody else stepped in to take over the issue. It may have been a bit abrupt to just close it, but it seems this repository has a standard of not accepting new features without tests – which seems reasonable – and of closing issues without enough information and pull requests that are not in a mergeable state after long enough without activity – which, again, seems reasonable. I will see if I can get around to adding tests for this, sometime, because it seems like it may be useful to add. You are also free to add them at your own leisure and prompt me into reopening the issue. Thank you for your attempt at a contribution, nonetheless. |
|
Please don't read between the lines. I am very open and straight forward person, had I meant that, I would have said that. I did not. I literally had this issue open between other 50 things in my browser for two months. I mean what I said, to the letter. There is no hidden agenda. I simply think that the communication is very important in just about anything, and acting without asking is just bad practice, whether it's PRs, issues, or community moderation. I'm genuinely trying to improve things, not make them worse, and I am sorry if it came across that bad. |
|
This seems like a fair point to raise. Perhaps it would be a good idea to mention on the issue that it's being considered to be closed for inactivity – @ekmartin? (I think I consider the "needs more info" tag I placed on several issues to be sufficient, but that or an equivalent wasn't placed here.) It seemed implausible you were commenting on the issue that you would be less motivated to complete the PR solely to bring it to our attention so we would work together to make you completing it a more likely reality, which is why I assumed there was a hidden agenda – mostly the intentions behind it, making it seem less charitable. I suppose that was a heuristic misfiring, so I'm sorry also. I do genuinely mean that the feature would be a useful addition, and that I may add the code for tests myself, but that it may take a week or several for me to get around to it (and was, though probably is no longer, made less likely by the previous conversation), and in addition I was trying to honestly communicate my perspective on the situation myself. |
|
I'll get back to it, eventually, if you're not faster... It's not that much to not be possible, but right now I don't have even that half an hour or however long it would take... |
I'm not much of a js person myself, so please do provide feedback, if you need me to change, rename, move something...