Discord Name: OofChair#0001
GitHub Repository (Must be V3): https://github.com/OofChair/OofCogs
Description: A repo with a couple of cog ideas that have come to my mind. Please let me know if I need to change anything. Thanks!
Discord Name: OofChair#0001
GitHub Repository (Must be V3): https://github.com/OofChair/OofCogs
Description: A repo with a couple of cog ideas that have come to my mind. Please let me know if I need to change anything. Thanks!
Hi OofChair#0001, thank you for your patience while I review your repo.
Commit hash at time of review - 3fcb56e7ed5c48330e5c02bcb27bb41f1ee503b7
register_user
instead to only have one cooldown time per user.next_payday
in config according to your registered defaults will never be None
. (Optional)credit_name
. (Optional)datetime.datetime.now()
assumes local system time while discord timestamps require a UTC timestamp so I recommend datetime.datetime.now(datetime.timezone.utc)
just to ensure all stored timestamps are UTC specifically and there’s no confusion on differing systems. (Optional)e
is assigned but never used. If you’re going to assign a variable in an exception you should do something with it or ignore it completely like except ValueError:
requirements
: Missing required library dcl
.manage_guild
permissions rather than attempting and failing to grab the invites. This method makes the call regardless eating up the bots rate limits for gathering this information.bot_in_a_guild()
check only checks that the bot is in at least 1 guild before executing the command. You should be checking that the context the command is sent in is a guild done with @commands.guild_only()
otherwise all your commands will fail in DM.async with ctx.typing()
with await ctx.trigger_typing()
instead which will automatically end after the following ctx.send()
.manage_guild
permissions.manage_guild
permissions?aiohttp
into your requirements, Red already provides a version of aiohttp and you could attempt to install an incompatible version for people with this.self.bot.loop.create_task(self.session.close())
here, while run_until_complete
implicitly does this for coroutines like this you should be explicit that you’re creating a task here. (Optional)__red_end_user_data_statement__
which is required to be fully compliant with end user data declaration. (Optional)min_bot_version
should be 3.4.6 in order to utilize ctx.reply
$schema
is not a valid key for info.json (Optional)end_user_data_statement
is a requirement for data API and EUD compliance. (Optional)__red_end_user_data_statement__
which is required to be fully compliant with end user data declaration. (Optional)Hi Trusty! Thanks for taking the time to review my repo - all changes should be made in commit 669346c458b443c10042a696c900de7cb0278e1f, let me know if I need to fix anything else
Hi OofChair#0001, there’s still some things that need to be addressed.
Commit hash at time of second review - 872f6cca52f2860d90b936ed1252e1e35d406fc4
me
as an attribute to the cog so this will error and you never know. You must have misunderstood how I meant for you to check this from my previous review.for guild in self.bot.guilds:
if guild.me.guild_permissions.manage_guild:
...
You completely removed your loop looking at guilds and the previous commit you tried to pass ctx which was also incorrect. You can’t just pass things to a function without actually having their reference.
if cond
or if cond is True
. (Optional)f
in front of them. (Optional).TypeError: 'bool' object is not callable
the manage_guild
attribute on permissions is not a method and should not be called like a method.@commands.bot_has_permissions(embed_links=True)
.except Exception:
to catch any other errors alongside your ContetTypeError or replace it if this service comes back.I do not have time at this moment to fix InviteTracker and its problems, so that is currently disabled until I can find time to fix it. I also learned today that the API for RedditPic is dead, and it is now deprecated and removed from my repo. I may be bringing it back, but at this moment I have no intention of doing so.
Have a good day and thank you for the review
Since 3.5 will break every cog that was not specifically coded with it in mind, you need to ensure your repo is updated to be compatible with 3.5 prior to a review being possible. The relevant documentation you will need to update your repo is the following:
-discord.py 2.0 migration: https://discordpy.readthedocs.io/en/v2.2.3/migrating.html
-Red 3.5 breakages: https://docs.discord.red/en/stable/incompatible_changes/3.5.html#incompatible-changes-3-5
Once your repo is updated to support 3.5 on the default branch, please make a comment in this thread to confirm you are once again ready for review. We will only be reviewing repos which comment to confirm 3.5 support, but we will prioritize repos that have been in the queue for a longer period of time first.
If you wish to revoke your application, please comment accordingly so we can clean up the thread. If you need time to make changes, but are actively working on making updates, please also comment accordingly. Applications which do not see any activity within 1 month from today will be closed.
Due to a lack of response, I will be closing this application. You may re-apply once your repo is updated to support the latest version of Red.