Skip to content
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

IRC nick availability issues #8

Open
ryzokuken opened this issue Jun 1, 2017 · 7 comments
Open

IRC nick availability issues #8

ryzokuken opened this issue Jun 1, 2017 · 7 comments

Comments

@ryzokuken
Copy link
Member

ryzokuken commented Jun 1, 2017

Sometimes, the specific IRC nick isn't available for use over the network (this might happen due to a connection issue where a previous instance has neither parted nor timed out of the channel and you try to reconnect). In such a scenario, the IRC library in use falls back to another numbered nick (i.e., if you plotsbot is taken, you will be named plotsbot1 instead).

Naturally, the user would mention the bot by its new (rather strange) name, but as the bot uses config.name internally, it wouldn't be able to know correctly when it is mentioned (because its looking for the wrong name entirely) and also the help message wouldn't make much sense (although each of the mentioned commands would completely work).

We would need to find a way to figure out when the required nick isn't available, which nick we fell back to, and then use THAT nick appropriately.

Preparing a first-timers-only

The various behaviors use and display the botNick variable inside the behaviors object to display the various values and also to ascertain that the message was indeed meant for the bot. Right now, we statically set the value of botNick to be the same as that of the attempted value of the bot's nick. However, if there's an issue and the bot is forced to fall back to an alternate value, there is a discrepancy between the two values - leading to this bug. In order to solve this, let's dynamically set the value of botNick to client.nick instead.

@bassdeveloper
Copy link
Contributor

@ryzokuken , I'll take this up.

@ryzokuken
Copy link
Member Author

@jywarren this can be possibly fixed by using https://node-irc.readthedocs.io/en/latest/API.html#Client.nick.

Should I refactor this into an FTO, or should I solve this right now?

@jywarren
Copy link
Member

jywarren commented Aug 7, 2017 via email

@ryzokuken
Copy link
Member Author

@jywarren Added a sample problem statement. Does that sound about right?

@jywarren
Copy link
Member

Hi -- I think it could use both a "problem" and "solution" section -- take a look at this for some guidance!

https://publiclab.org/notes/warren/10-31-2016/create-a-welcoming-first-timers-only-issue-to-invite-new-software-contributors

Thanks!

@sidntrivedi012
Copy link
Member

@gauravano Would like to help out on this.

@grvsachdeva
Copy link
Member

Great @sidntrivedi012!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants