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

[Feat] Add a countdown for the shutdown command. #191

Closed
3 tasks done
NullyIsHere opened this issue Jan 7, 2025 · 5 comments
Closed
3 tasks done

[Feat] Add a countdown for the shutdown command. #191

NullyIsHere opened this issue Jan 7, 2025 · 5 comments
Labels
enhancement New feature or request v3.x Applies to v3.x

Comments

@NullyIsHere
Copy link
Contributor

Checklist

  • The same feedback was not posted yet.
  • This is not a suggestion for the moderation team.
  • All info applicable to the issue has been attached.

Problem

image

When shutting the bot down it tells you that if you don't do anything it'll be shut down in 60 seconds, a countdown could be useful and look better.

Proposed solution

Use discord timestamps
image

Also adding a "If the timestamp shows incorrectly, your time or the servers is not right."

Alternatives considered

Editing the message but its too API intensive and not practical.

Additional context

This is a valid code to get the rich timestamp, apply a 60 sec delay and send it
(One shown in the screenshots)

rawtime = time.time()
realtime = str(rawtime).split(".")[0]
print(realtime)
restarttime = str(int(realtime) + 60)
await ctx.send(f"<t:{restarttime}:R>")
```__
@NullyIsHere NullyIsHere added the enhancement New feature or request label Jan 7, 2025
@NullyIsHere
Copy link
Contributor Author

Lezetho on Discord:

we could do discord timestamps as it's a good solution and it's already built into discord however they can get unreliable sometimes. what i propose is that we do like it'll say "60 seconds" then "30 seconds" and in the last 10 seconds it'll then use a timestamp to finish it off, making it probably more reliable

@NullyIsHere
Copy link
Contributor Author

Me on Discord:

yeah but if the client's internal rtc is off itll still be unreliable, you want it or not, so, i still think its good way to do it, and it shows that "its actually restarting", for example people usually lile more ubuntu's poweroff screen, because the seconds count down while zorin's doesnt

@NullyIsHere
Copy link
Contributor Author

Lezetho on Discord:

hmm fair point

@greeeen-dev greeeen-dev removed their assignment Jan 10, 2025
@NullyIsHere
Copy link
Contributor Author

Sorry green, the template auto assigned you.

@greeeen-dev
Copy link
Member

HOW AM I STILL BEING NOTIFIED FOR EVERY COMMENT YOU MAKE

@github-project-automation github-project-automation bot moved this to Triage in v3 roadmap Feb 3, 2025
@greeeen-dev greeeen-dev moved this from Triage to Todo in v3 roadmap Feb 3, 2025
@greeeen-dev greeeen-dev added the v3.x Applies to v3.x label Feb 3, 2025
@greeeen-dev greeeen-dev linked a pull request Feb 3, 2025 that will close this issue
2 tasks
@greeeen-dev greeeen-dev removed this from v3 roadmap Feb 5, 2025
@greeeen-dev greeeen-dev removed a link to a pull request Feb 5, 2025
2 tasks
@greeeen-dev greeeen-dev closed this as not planned Won't fix, can't repro, duplicate, stale Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request v3.x Applies to v3.x
Projects
None yet
Development

No branches or pull requests

2 participants