Skip to content

Repository files navigation

ASDirect's Custom Bot

Developer instructions

Project organisation

We'll use feature branches. Do not commit directly to the main branch after the initial commits. Even for tiny changes.

Our process will be the following:

  1. Create a feature branch from main to solve something, i.e. "feature_coolcommand1"
  2. Commit your progress on that branch, and that branch only
  3. Create a pull request from the branch into main
gitGraph
    commit id:"Initial commit"
    commit id:"Readme"
    branch feature_example
    checkout feature_example
    commit id: "making progress"
    commit id: "more progress"
    checkout main
    merge feature_example
Loading

This allows multiple people to work at the same time on different features without affecting the main deploy/product.

gitGraph
    commit id:"Initial commit"
    commit id:"Readme"
    branch feature_person1
    branch feature_person2
    checkout feature_person1
    commit id: "making progress"

    checkout feature_person2
    commit id: "progress on another thing"
    checkout feature_person1
    commit id: "more progress"
    checkout main
    merge feature_person1
    checkout feature_person2
    commit id: "even more progress"
    commit id: "working here"
    merge main id:"Merge from main"
    checkout main
    merge feature_person2 id:"Merge from feature branch"

Loading

Running and testing

Assure all the required dependencies are installed by running pip install -r requirements.txt

Behaviour/acceptance testing can be run by simply calling behave (it'll use the default configurations in behave.ini).

Unit tests/code coverage can be assessed by running

coverage run -m unittest discover -s ./src/test/unittests -p test*.py -t ./src
coverage report
coverage lcov -o lcov.info

About

A bot for the ASDirect discord server

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages