docs: Add AI Coding Assistants documentation#217
Conversation
ar-cyber
left a comment
There was a problem hiding this comment.
All good. Just some branding issues.
| # AI Coding Assistants | ||
|
|
||
| This document provides guidance for AI tools and developers using AI | ||
| assistance when contributing to the ERM bot. |
| This document provides guidance for AI tools and developers using AI | ||
| assistance when contributing to the ERM bot. | ||
|
|
||
| AI tools helping with ERM bot development should follow the standard |
There was a problem hiding this comment.
same here. Just ERM instead of ERM bot
|
Fixed |
|
Where's the error |
Co-authored-by: Andrew R <25roband@cbc.sa.edu.au>
ar-cyber
left a comment
There was a problem hiding this comment.
All good. Just need unknown to merge (or mikey)
|
Found it, I'm not use to the github UI on mobile. |
👍 |
I hate it on my phone. I literally get out my laptop on the bus just to review prs. |
|
I'm in the car getting pizza and fixing these issues lol |
|
Expect a few more PRs about documentation on modules |
|
Unknown complained about undocumented code in VC a while back that's why I thought of it. |
|
@UnknownGamerz6996 I have more documentation I need to put in. |
|
I am gonna put it in a different PR but I cant open a PR until you approve this one. |
too difficult to explain
|
Just made some changes to the contribution guidelines as some stuff isn't required. |
ar-cyber
left a comment
There was a problem hiding this comment.
just some things to change
| or MongoDB `ObjectId` values depending on the collection. | ||
| - The `Document` base class in `utils/mongo.py` provides all standard | ||
| async CRUD methods. Use those rather than accessing `bot.db` directly | ||
| with raw pymongo calls. |
There was a problem hiding this comment.
raw pymongo calls are required as the document class doesn't expose everything. e.g. find_one, find, and aggregate may be needed but aren't exposed.
There was a problem hiding this comment.
not really necessary to remove.
|
@ar-cyber review requested |
No changes have been made. |
Co-authored-by: Andrew R <loafing@sockycat.net>
Co-authored-by: Andrew R <loafing@sockycat.net>
Co-authored-by: Andrew R <loafing@sockycat.net>
Co-authored-by: Andrew R <loafing@sockycat.net>
|
|
||
| When inviting the bot, the following are required: | ||
|
|
||
| - `Bot` |
There was a problem hiding this comment.
Bot doesn't have a capital B - it's a scope, like applications.commands
There was a problem hiding this comment.
it doesnt really matter
| - Python 3.12. Match the style of the surrounding code. | ||
| - All database calls must be `async`. Use `await` throughout — do not | ||
| use blocking pymongo calls. | ||
| - Ensure the use of the `Document` class whenever accessing different collections. | ||
| - Do not create Documents in commands, define them on the instance method `self` in the setup hook. | ||
| - Use `discord.ext.tasks.loop` for new background tasks. | ||
| - New interactive Discord flows must have their own UI file in `ui/`. Do not add new enties to `menus.py`. | ||
| - Use `utils/constants.py` for shared colour values (`BLANK_COLOR`, | ||
| `GREEN_COLOR`, `RED_COLOR`) rather than hardcoding hex values. | ||
| - Use `decouple.config()` for all environment variable access. | ||
| - Do not use inline ENV comments |
| | `statistics_check` | Periodic | Updates analytics records | | ||
| | `tempban_checks` | Periodic | Lifts expired temporary bans | | ||
| | `check_whitelisted_car` | Periodic | Enforces whitelisted vehicle rules in-game | | ||
| | `change_status` | Periodic | Rotates the bot's Discord presence status | |
| | `ERLC` | ER:LC in-game integration (bans, kicks, player lookup) | | ||
| | `GameLogging` | In-game event log forwarding to Discord channels | | ||
| | `Infractions` | Staff infraction tracking and management | | ||
| | `Jishaku` | Developer/debug REPL (conditionally loaded) | |
There was a problem hiding this comment.
not conditionally loaded
There was a problem hiding this comment.
What do you mean by "not conditionally loaded"
Co-authored-by: Andrew R <loafing@sockycat.net>
|
I am on my phone I will do these in a minute |
all good. no rush |
|
@ar-cyber can you make edit requests rq since I'm far from my laptop |
|
i can't atm |
|
@Netplayz can you just finish my feedback |
|
Hi Andrew,
I’m currently focused on a major project that requires my full attention,
so I won't be able to address that feedback right now.
Best regards,
Netbyte
…On Mon, May 4, 2026 at 12:29 AM Andrew R ***@***.***> wrote:
*ar-cyber* left a comment (mikeywhiston/ERM#217)
<#217 (comment)>
@Netplayz <https://github.com/Netplayz> can you just finish my feedback
—
Reply to this email directly, view it on GitHub
<#217 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQUG6FRRYKWVRNUS43XESC34ZAMCLAVCNFSM6AAAAACXR5USHWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHM2DGNRYGI2DKOBSGM>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
That's all good. |
Removed duplicate warning about not using this file for new views.
Netplayz
left a comment
There was a problem hiding this comment.
requesting review.
ar-cyber
left a comment
There was a problem hiding this comment.
still needs a couple fixes
| | `ERLC` | ER:LC in-game integration (bans, kicks, player lookup) | | ||
| | `GameLogging` | In-game event log forwarding to Discord channels | | ||
| | `Infractions` | Staff infraction tracking and management | | ||
| | `Jishaku` | Developer/debug REPL (conditionally loaded) | |
Co-authored-by: Andrew R <loafing@sockycat.net>
| - `PRODUCTION_BOT_TOKEN` — Bot token for the production environment | ||
| - `DEVELOPMENT_BOT_TOKEN` — Bot token for the development environment | ||
| - `DEVELOPMENT_BOT_TOKEN` — Bot token for the development environment | ||
| - `CUSTOM_GUILD_ID` must stay 0 in order to be used in other servers. If set to a specific server the bot cannot operate in other servers. |
There was a problem hiding this comment.
Must be set to 0 regardless of usage.
Add guidance for AI assistants and developers using AI tools for ERM
contributions.
documentation/coding-assistants.md is for guiding AI assistants
on licensing, Signed-off-by requirements, and attribution format. The
README.md points AI tools to this documentation so they wont miss it.
Signed,
Netbyte
edit: PR message was taken and edited from torvalds/linux@78d979d