Collaborative project

CollaBot: learn to code by building a Discord bot together

A Discord bot built together Open to everyone Starting from scratch On GitHub

The idea

CollaBot starts from an empty repository: the project's folder on GitHub holds nothing but a README, the file that introduces the project. Not a single line of code yet.

Everyone adds a brick: a function, a fix, a line of documentation. The bot grows one commit at a time. A commit is a saved change, with a message that says what it does.

The bot isn't the goal. The goal is to learn by building it: learn to code, and above all learn to work as a team with Git. Git is the tool that keeps the history of every change and lets several people work on the same code without stepping on each other's toes.

Who is it for?

Everyone. The project is open to all, whether you're already on the DevHub Discord or not.

Just opened a terminal for the first time? There's room for you. Been coding for years? There's room for you too. Reviewing other people's code, giving advice, helping someone past an error they're stuck on: that counts just as much as writing code.

No schedule, no commitment. You contribute whenever you like, as much as you like.

How to take part

  1. Create a GitHub account. GitHub is the site that hosts the project's code and where all the teamwork happens. The account is free.
  2. Learn the Git basics. Four moves are enough to get started: clone the repository (copy it to your computer), create a branch (your own working copy, where you can change things without touching the main version), commit (save a change) and open a pull request (propose your change so it can be reviewed, then added to the project). The First Contributions guide walks you through all of it, step by step.
  3. Pick a task. Have a look at the repository's issues: tickets that describe a bug, an idea or something to do. Got an idea that isn't there? Open an issue to suggest it. When a task catches your eye, comment "I'll take it" so two people don't end up doing the same thing.
  4. One pull request, one thing. A fix, a function or a page of docs, not everything at once: it's much easier to review. In the description, explain what you did and how you tested it.

Code reviews

Every pull request is reviewed before it's merged, that is, added to the main version of the bot.

It isn't an exam. A review is there to explain what could be better, and why. It's often where you learn the most: another way to write something, a case you hadn't thought of, a good habit to pick up.

Being asked for changes is normal. It happens to everyone, even the most experienced developers. You fix things on your branch, and the pull request updates itself.

Got a question?

Ask it on the DevHub Discord, or right in the issue on GitHub. There's no such thing as a silly question: if you're stuck somewhere, chances are someone else got stuck in the same place.

The repository is open and waiting for its first contributions:
github.com/devhub-community-staff/collabot