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

[streams] Add Discord timestamp #6257

Closed
Mister-42 opened this issue Oct 11, 2023 · 2 comments · Fixed by #6264
Closed

[streams] Add Discord timestamp #6257

Mister-42 opened this issue Oct 11, 2023 · 2 comments · Fixed by #6264
Labels
Category: Cogs - Streams This is related to the Streams cog. Good First Issue Good for beginners to the project. Status: In Progress There's a PR open to deal with this, or an org member is working on this internally Type: Enhancement Something meant to enhance existing Red features.

Comments

@Mister-42
Copy link

Mister-42 commented Oct 11, 2023

What component of Red (cog, command, API) would you like to see improvements on?

Streams

Describe the enhancement you're suggesting.

Can you please change the current "This stream will start in {time}" to Discord timestamps like <t:1713579600:R>? I think this would be a nice improvement.

Anything else?

No response

@Mister-42 Mister-42 added the Type: Enhancement Something meant to enhance existing Red features. label Oct 11, 2023
@github-actions github-actions bot added the Status: Needs Triage This has not been labeled or discussed for handling yet. label Oct 11, 2023
@Mister-42 Mister-42 changed the title Add Discord timestamp [streams] Add Discord timestamp Oct 11, 2023
@Flame442 Flame442 added Good First Issue Good for beginners to the project. Status: PRs Welcome No one is currently assigned to this issue, but we'd be grateful if anyone made a PR. Category: Cogs - Streams This is related to the Streams cog. and removed Status: Needs Triage This has not been labeled or discussed for handling yet. labels Oct 11, 2023
@Nidhi-Sharma9419
Copy link

Hey, I would like to work on this issue, can anyone explain me this issue? I'm beginner in open-source.

@Flame442
Copy link
Member

Discord has a feature for rendering timestamps that update automatically in the client using special syntax around a unix timestamp integer.

image

In this case, as was described above, the current string specifying when the string will start (found here) should replace the time from a humanized_timedelta to an absolute datetime, convert the datetime to a unix timestamp, and put the timestamp into discord timestamp syntax <t:1713579600:R>.

@Flame442 Flame442 added Status: In Progress There's a PR open to deal with this, or an org member is working on this internally and removed Status: PRs Welcome No one is currently assigned to this issue, but we'd be grateful if anyone made a PR. labels Nov 18, 2023
@Flame442 Flame442 added this to the 3.5.9 milestone Apr 4, 2024
@Jackenmen Jackenmen removed this from the 3.5.9 milestone Apr 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category: Cogs - Streams This is related to the Streams cog. Good First Issue Good for beginners to the project. Status: In Progress There's a PR open to deal with this, or an org member is working on this internally Type: Enhancement Something meant to enhance existing Red features.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants