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

Change how status type is encoded in the protocol #5627

Closed
wants to merge 1 commit into from

Conversation

scheibo
Copy link
Contributor

@scheibo scheibo commented Jul 18, 2019

Not to be merged until the client can handle the new protocol. We might need to also give bot developers a heads up as well? Discussion is all on #5590

const statusMessage = this.statusType === 'busy' ? '!(Busy) ' : this.statusType === 'idle' ? '!(Idle) ' : '';
const status = statusMessage + (this.userMessage || '');
return status;
return this.statusType === 'idle' ? '@!' : this.statusType === 'busy' ? '@' : /* online */ '';
Copy link
Contributor

Choose a reason for hiding this comment

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

Whether Idle should be @ or @? is up on the fence still, I think?

Suggested change
return this.statusType === 'idle' ? '@!' : this.statusType === 'busy' ? '@' : /* online */ '';
return this.statusType === 'busy' ? '@!' : this.statusType === 'idle' ? '@' : /* online */ '';

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, Zarel is pretty vehement about Busy as @ and Idle as @!, so the code as written should correctly reflect his preference.

Copy link
Contributor

Choose a reason for hiding this comment

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

Oh, I reverted it in my brain and thought he wanted @! for busy and @ idle, my bad.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, we want @! for Busy which is why its so confusing, but to Zarel, Busy is ⊥, and I'm tired to arguing.

@thejetou
Copy link
Contributor

thejetou commented Aug 8, 2019

Hm, looks like you'll also need to change:

@Zarel Zarel force-pushed the master branch 2 times, most recently from c7b57c2 to 1d09dd1 Compare February 20, 2020 23:58
@scheibo scheibo closed this Mar 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants