the-coding-realm / community-bin Goto Github PK
View Code? Open in Web Editor NEWA community wide code-bin for members of The Coding Academy to share their code with others.
License: MIT License
A community wide code-bin for members of The Coding Academy to share their code with others.
License: MIT License
@FalseDev @CodeWithSwastik
I think this is ready to make public. Any feedback?
The gitignore contents should include:
.env
venv
.DS_Store
.vscode
__pycache__
node_modules
Add an example bot written in discord.js
"Your code must be under MIT or similar license"
Make the code fall under a license for this whole repo. Nobody should be allowed to post code under any license to them, and if they fail to follow this then they do so knowing that they are surrendering all rights and reservations of the code posted to The Coding Academy. The license for this repo should be MIT
"The files you're adding must be written by you and must attribute to any co-authors (No plagarism)"
It's "plagiarism", other than that it sounds good.
"The first few lines of the file must state the following"
"Although not required, these could be added as well"
Sounds good.
Sounds good
"Code must be formatted with black"
I don't use black, I think the code should be checked by flake8 in a GitHub action (any warnings would cause a failed check),
so we do a general PEP8 test instead of specific to a library that most people (that I've seen) don't use. The settings for flake8 could be changed such as ignoring certain protocols or changing the maximum line length.
A good compromise in this might be saying something like "Code must follow PEP8. Black is a good module to help format your code if you don't want or know how to do it yourself.
"Imports must be sorted with isort"
I suggest changing this similar to the suggestion about black, showing the guidelines to follow but giving a tool on how to do so. "Imports must follow PEP8. isort is a good tool to help you do this, similar to black"
"Specify any priviledged intents that are required"
"priviledged" -> " privileged"
"Please use @commands.command (rather than @bot.command) for commands that aren't in a cog so that it can be used by anyone with least hassle using bot.add_command"
"least" -> "less"
"Ensure each command has appropriate permission checks for the user and bot"
Sounds good.
"Ensure all edge cases are handled and that you've actually tested the commands"
Might be reworded later as not everyone knows what edge cases are but for now, it sounds good.
I just read back over this, and it does look kind of a lot. I'd be happy to make any changes myself if you want, but the main concerns for me are:
I can help you with setting up a flake8 linter in a GitHub action if you want me to, or I can make a pull request with other changes as well.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.