Thank you for wanting to contribute and make Stop better for everyone! Here is a quick set up guide and some rules to follow for creating and working on issues, creating branches, submitting pull requests.
- Before anything else, join Stop's Discord server.
- Clone the repo to your local machine.
- Use the development branch,
dev1
. - Create an app and app bot user at Discord developers.
- Create an
auth.json
and add your bot token for testing. - Run
npm install
to install all dependencies. This project uses Node version 10. - Use
npm run build
for Babel to compile the ES6 syntax. - Create a branch off of
dev1
calleddev1/camelCase
.- ex:
dev1/makeStopCooler
ordev1/addNewStopSign
- ex:
- Make sure you have Node installed before running.
- To run:
node lib/stopbot.js
- To run:
- Start coding and discussing!
- The server count code snippets in
stopbot.js
may have to be commented out before you can run. These are for posting the server count to the discord bot lists Stop is on. Since the tokens don't exist in your auth.json, it'll throw an error at you. (I'll eventually move these elsewhere so they don't bother you.) - Currently, data is being pushed to a local PostgreSQL database so the SQL commands probably won't work on your machine. You may have to create an empty database to test your changes.
You create a pull request, I review it. I reject or approve it and give comments. You and I fix anything that needs to be fixed. I review it again. I merge and push your changes to master
. Eventually, major changes will be merged with my private, mysterious stable
branch which is deployed on a Digital Ocean VPS. You also get the shiny Contributor
role on Stop's Discord server.
Please raise the issues channel in Stop's Discord server or create an issue on GitHub. Eventually, all relevant and tested issues mentioned on Discord will be added to this repo's issues. When starting an issue, please comment on it, letting others know you will be working on it so there aren't overlaps.
When creating a PR, give it a descriptive title and write a few notes or bullet points letting us know quickly what it is that you did. It can be just a sentence or two. If is it linked to an issue (which it should be) please mention the issue in your commit message so that it links to the issue's page. For example, git commit -m "Fixed issue #7, stop sign no longer says go"
.
Be nice. Be respectful. Be productive.