-
Notifications
You must be signed in to change notification settings - Fork 16
Description
https://cogboard.discord.red/t/coffee-cogs/1259
- [DELAY] bartender
- Red Cog Approval: bookery #46
- Red Cog Approval: clara #47
- Red Cog Approval: coffeeani #49
- Red Cog Approval: coffeetime #50
- Red Cog Approval: coffeetools #51
- [DELAY] dmreply
- [DELAY] emotes
- Red Cog Approval: hellohook #52
- Red Cog Approval: jadict #54
- [DELAY] jsonrequest
- Red Cog Approval: kodict #53
- [DELAY] kyarutail
- Red Cog Approval: loveplay #55
- Red Cog Approval: msgmover #56
- Red Cog Approval: pinboard #57
- [DELAY] quarantine
- Red Cog Approval: sendhook #58
- [DELAY] spotifyembed
- [DELAY] websearch
- Red Cog Approval: zidian #59
General
-
Consider using TitleCase instead of Titlecase casing for your class names to maintain consistency with how users expect to get [p]help for 3rd party cogs.
- Response:
⏳ In progress. Currently, the name for most cogs are stylized in lowercase (or first letter capitalized). This may change.
- Response:
-
📝 Several of your cogs use requests (or urllib.requests), which is a blocking way to make HTTP requests. You should instead use aiohttp (as several of your cogs do) to make HTTP requests in an asynchronous way.
- Response:
⏳ In progress. Due to previous changes to the webhook API, all async webhooks were migrated to SyncWebhook as a patch, which depended onrequestsand is blocking. However, it seems async webhook is now fixed. Migration back to async webhook is planned.
- Response:
-
📝 Some cogs have requests in their requirements, despite it not being used.
- Response:
⏳ In progress. After migration back to async webhooks is completed,requestswill be removed from requirements.
- Response:
-
Some cogs have aiohttp and asyncio in their requirements. Those libraries are already requirements of Red, so listing them is not necessary.
- Response:
⏳ In progress.
- Response:
-
Despite some cogs including it, permissions is not a valid info.json key, and including it will not resolve the need to add proper permissions checking to commands.
- Response:
⏳ In progress.
- Response:
-
You have bare except blocks in a few places. Consider at least replacing them with except Exception, to avoid catching standard control errors like the one generated by CTRL+Cing. Ideally, identify the error you actually intend to catch and use that instead (generally discord.HTTPException is a good bet for Discord API calls).
- Response:
⏳ In progress.
- Response:
-
Consider checking the response.status in your aiohttp requests in case the URL requested goes offline or has an error.
- Response:
⏳ In progress.
- Response:
-
Your cogs don’t have internal consistency between [p] < cog > set (ie [p]barset) and [p]set < cog > (ie [p]setwebsearch).
- Response:
⏳ In progress. Standardizing on [p]set < cog > .
- Response:
-
[ℹ️] Consider using await ctx.tick() instead of a manual add_reaction call in places where you are just adding a checkmark to the invoking message.
- Response:
Potentially delayed to next refactor/code cleanup.
- Response: