feat: add !uptime prefix command + improve DISCORD_TOKEN error message#12
Merged
Conversation
Closes IN3PIRE#11 Pins discord.py and python-dotenv to exact versions (==) to prevent accidental breakage from upstream updates, and adds inline comments explaining each package's role.
This was referenced Apr 27, 2026
Contributor
PR ReviewStatus: ✅ Code Approved, ✅ Quality
|
Contributor
Author
|
Thanks for the thorough review, @TrivCodez! Really appreciate the kind words on the code quality. I've gone ahead and starred the repository ⭐ — happy to support the project! Noted on the scope point too — going forward I'll keep PRs focused on a single issue. Good habit to build. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #9
Closes #7
What
1.
!uptimecommand (prefixcommands/uptime.py)datetime.now(timezone.utc)Bot Uptime: 2 days, 14 hours, 35 minutesprefixcommands/ping.py(Cog class + type hints)2. Better
DISCORD_TOKENerror (bot.py)RuntimeErrorwith a clear 3-step message.env.example, fill in token, link to Discord dev portalprefixcommands.uptimein the extensions listExample output
Files changed
prefixcommands/uptime.py— new filebot.py— register uptime extension + improve token error message