-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
feat(OG-Network): add presence #8366
Conversation
presenceData.buttons = [ | ||
{ | ||
label: "View", | ||
url, | ||
}, | ||
]; |
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.
Please read our guideliness
Presences that use buttons should follow extra requirements:
Redirects to main page are prohibited.
Promoting websites by them is prohibited.
They can't display information you couldn't fit in other fields.
Redirecting directly to audio/video stream is prohibited.
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.
If using buttons, it should ideally be used on specific interesting routes rather than a catch-all button
|
||
presence.setActivity(presenceData); | ||
|
||
if (!startTime) startTime = Date.now(); |
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.
What
logo: "https://www.og-network.net/assets/logo.png", | ||
}; | ||
|
||
let startTime: number; |
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.
no reason to use this after my changes.
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.
startTime
is only assigned, not really used. It can be removed.
Co-authored-by: Dark_Ville <42322979+DarkVillager@users.noreply.github.com> Signed-off-by: John Fries <w.bababooie@gmail.com>
Co-authored-by: Dark_Ville <42322979+DarkVillager@users.noreply.github.com> Signed-off-by: John Fries <w.bababooie@gmail.com>
Co-authored-by: Dark_Ville <42322979+DarkVillager@users.noreply.github.com> Signed-off-by: John Fries <w.bababooie@gmail.com>
Co-authored-by: Dark_Ville <42322979+DarkVillager@users.noreply.github.com> Signed-off-by: John Fries <w.bababooie@gmail.com>
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.
Also, resolve the automated checks
], | ||
"version": "1.0.0", | ||
"logo": "https://i.imgur.com/6jC2EYO.png", | ||
"thumbnail": "https://www.og-network.net/assets/logo.png", |
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.
The thumbnail should preferably be a wide promotional card or a screenshot if the first is not available.
logo: "https://www.og-network.net/assets/logo.png", | ||
}; | ||
|
||
let startTime: number; |
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.
startTime
is only assigned, not really used. It can be removed.
presenceData.buttons = [ | ||
{ | ||
label: "View", | ||
url, | ||
}, | ||
]; |
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.
If using buttons, it should ideally be used on specific interesting routes rather than a catch-all button
}, | ||
"service": "OG Network", | ||
"description": { | ||
"en": "OG Network website presence" |
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.
If possible, use an official description
Closing for inactivity. You may open a new PR after resolving the issues mentioned in this one. |
Description
Acknowledgements
yarn format
Screenshots
Proof showing the creation/modification is working as expected