Skip to content

fix: reduce invite nags - #24

Open
nick-bors wants to merge 1 commit into
lobsters:developfrom
nick-bors:inviteinfo
Open

fix: reduce invite nags#24
nick-bors wants to merge 1 commit into
lobsters:developfrom
nick-bors:inviteinfo

Conversation

@nick-bors

Copy link
Copy Markdown
Contributor

follow on from the now-closed #22 to fix issue #23

I think the joinedAt key might become useful in the future too. Its more justified than a lastJoined (imo).

@nick-bors

Copy link
Copy Markdown
Contributor Author

@pushcx @winks

@pushcx pushcx left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for coming back to this. One code tweak to make this a little more resilient and we'll get this deployed.

Comment thread src/commands.js

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't want to throw an exception for this control flow, it doesn't feel like there's actually an exceptional situation if someone joined before this was deployed, or joined when the bot was offline for a minute.

And I would rather fail safe. If the bot doesn't know that it has seen someone join in the last 10 minutes, it should fail silently. I would rather it miss giving an invite suggestion or two than give extra.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants