Comments (10)
@tomassirio a couple of questions:
- Should I leave usage of process.env where configuration is actually realted directly to the environment and not exactly bot configuration — the one and only example is in
mongoose.js
whereprocess.env.NODE_ENV
is being used; that would be set in an external environment variable not in the bot config. I'm leaning toward leaving that as a valid usage ofprocess.env
and just adding some doc/notes in.env.example
. What are your thoughts on this? - There are some usages of
process.env
insrc/utils/encrypt.js
but I'm not sure the encryption feature is fully baked yet. Should I go ahead and update those usages (process.env.KEY
andprocess.env.IV
) and maybe give them more distinct names (e.g.config.encryptionKey
/config.encryptionIV
)? Or should I let whoever is working on the encryption feature worry about updating this?
from listbot.
-
Definetely go the way you are leaning for. I'd rather have it documented on .env.example
-
The encryption feature is not yet fully baked. I haven't heard from the developer on the PR for a while. I'd go with the way of distinctive names for the .env variables. As we spoke before i'd rather have declarative environment variables
from listbot.
I hesitate to change the encrypt.js file if it's not fully baked, but if you want me to I will.
Another question, is the code in src/commands/info/commands.js
actually used by the bot? Unless I've missed something, I don't think it is. Should it be removed?
I've made changes to files using process.env
and am trying to do testing before committing and submitting a PR to ensure I did not introduce any errors and I found the above (and encrypt.js) which I can't really test because they are not really in use.
from listbot.
I think that the commands in info was implemented some time during development but was discarded towards the help command. If there's no use to it, then delete it
from listbot.
I merged just now the encryption PR. Check it out
from listbot.
I like to keep changes in PR related to issues they resolve, so I'll create an issue for removal of src/commands/info/commands.js
and we can leave that one for an easy win for a first-timer or Hacktoberfest participant.
I'll take a look at the enrcryption PR in a bit.
from listbot.
@tomassirio There seem to be a bunch of linting issues with the code that was merged for the encryption PE. So now anyone branching off or merging in the current point in master will have those same linting issues when they try to issue a PR. Those issues should probably be cleaned up before further work is done.
Are there any guidelines in place to ensure that the master branch always stays clean? If not, should there be? Maybe the contributor guidelines should be filled out a bit to make sure people know how to merge the current master into their working branch and resolving any issues before issuing a PR? Though they'd have to be enforce to be of real use, not sure if you're interested in doing that as the repo owner. Let me know your thoughts, if you'd like I can help flesh out better contributor docs to help explain the workflow that should be followed to avoid the messiness when it comes to getting a PR accepted.
from listbot.
There should be a guideline as to how you should push to master. I think the elint job didn't trigger with that last PR.
How do you think we could make the contributor docs better?
from listbot.
I was thinking add content to make things clearer and more guided for newcomers/beginners and to make things easier for you in managing PRs.
For instance, right now the contributor page just has the Contributor Covenant on it, but no actual info about making contributions specifically in this repo.
The main README has a Contribution Guidelines with some basics, but I don't think those are even being followed currently based on looking at some of the PRs. For instance the guildelines say to name your branch change/username
and to use the sign-off switch when committing, but looking at some accept PRs those don't look to be followed much.
The contributor doc could be made better by adding info about:
- how to add the original repo as a remote (for syncing)
- how to sync their local repo's master and working branch with changes from the upstream master
- how to perform a final sync and lint check before issuing a PR
- how to handle a PR that has been submitted, but ends up having conflicts due to other PRs being merged before theirs
That kind of stuff that will help make PRs cleaner so that when you merge them it doesn't throw the master branch into a state of disarray.
Getting a test suite in place would help also, and I believe someone is working on that. But those are the ideas I was thinking of for better contributor doc.
BTW, I'll have a PR for this issue sometime today.
from listbot.
Amazing. I'm learning a lot from this issues you are talking about. I'll try to cover my side from the PR's acceptance
from listbot.
Related Issues (20)
- [FEATURE] Refactor code to remove typos HOT 4
- [FEATURE] Standardizing Embed Formats HOT 7
- [BUG] Issues with the Add, Remove and Multi-remove commands HOT 4
- [FEATURE] Increase poll range of choices HOT 5
- [BUG] Issue with poll command when channel list has more than 5 items HOT 1
- Code Quality/Optimizations HOT 7
- [BUG] MongoDB error-handling HOT 3
- [BUG] Saving the same doc multiple times in parallel HOT 12
- [BUG] The help command's output does not provide help for all commands currently available. HOT 1
- [BUG] $list outputs nothing if there are too many characters
- [BUG] Multi-add splits with spaces
- Remind command help is not currently accurate.
- Refactor how commands and help interact to build usage.
- [BUG] Select commands no longer functioning HOT 4
- Commands no longer case-insensitive.
- Extraneous space not handled as they were previously.
- [BUG] Issues with $remind command: empty reminder allowed and strange delimiting
- [FEATURE] Add pagination
- [BUG] This bot can't join more servers. https://dis.gd/bot-verification HOT 4
- [BUG] Unwanted files present in the repo
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from listbot.